Home | History | Annotate | Download | only in rendering

Lines Matching refs:RenderBlock

25 #include "core/rendering/RenderBlock.h"
93 COMPILE_ASSERT(sizeof(RenderBlock) == sizeof(SameSizeAsRenderBlock), RenderBlock_should_stay_small);
94 COMPILE_ASSERT(sizeof(RenderBlock::RenderBlockRareData) == sizeof(SameSizeAsRenderBlockRareData), RenderBlockRareData_should_stay_small);
105 typedef WTF::HashMap<RenderBlock*, OwnPtr<ListHashSet<RenderInline*> > > ContinuationOutlineTableMap;
107 typedef WTF::HashSet<RenderBlock*> DelayedUpdateScrollInfoSet;
118 OverflowEventDispatcher(const RenderBlock* block)
150 const RenderBlock* m_block;
156 RenderBlock::RenderBlock(ContainerNode* node)
168 static void removeBlockFromDescendantAndContainerMaps(RenderBlock* block, TrackedDescendantsMap*& descendantMap, TrackedContainerMap*& containerMap)
177 HashSet<RenderBlock*>* containerSet = it->value.get();
221 RenderBlock::~RenderBlock()
231 void RenderBlock::willBeDestroyed()
282 void RenderBlock::styleWillChange(StyleDifference diff, const RenderStyle& newStyle)
330 void RenderBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle)
338 for (RenderBlock* currCont = blockElementContinuation(); currCont; currCont = currCont->blockElementContinuation()) {
365 void RenderBlock::invalidateTreeAfterLayout(const RenderLayerModelObject& invalidationContainer)
405 RenderBlock* RenderBlock::continuationBefore(RenderObject* beforeChild)
410 RenderBlock* curr = toRenderBlock(continuation());
411 RenderBlock* nextToLast = this;
412 RenderBlock* last = this;
430 void RenderBlock::addChildToContinuation(RenderObject* newChild, RenderObject* beforeChild)
432 RenderBlock* flow = continuationBefore(beforeChild);
475 void RenderBlock::addChildToAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild)
480 RenderBlock* beforeChildParent = 0;
508 RenderBlock* newBox = newChildHasColumnSpan ? createAnonymousColumnSpanBlock() : createAnonymousColumnsBlock();
531 RenderBlock* newBox = newChildHasColumnSpan ? createAnonymousColumnSpanBlock() : createAnonymousColumnsBlock();
537 RenderBlockFlow* RenderBlock::containingColumnsBlock(bool allowAnonymousColumnBlock)
539 RenderBlock* firstChildIgnoringAnonymousWrappers = 0;
564 RenderBlock* RenderBlock::clone() const
566 RenderBlock* cloneBlock;
585 void RenderBlock::splitBlocks(RenderBlock* fromBlock, RenderBlock* toBlock,
586 RenderBlock* middleBlock,
590 RenderBlock* cloneBlock = clone();
620 RenderBlock* blockCurr = toRenderBlock(curr);
623 RenderBlock* cloneChild = cloneBlock;
657 void RenderBlock::splitFlow(RenderObject* beforeChild, RenderBlock* newBlockBox,
660 RenderBlock* pre = 0;
661 RenderBlock* block = containingColumnsBlock();
681 RenderBlock* post = block->createAnonymousColumnsBlock();
710 void RenderBlock::makeChildrenAnonymousColumnBlocks(RenderObject* beforeChild, RenderBlockFlow* newBlockBox, RenderObject* newChild)
714 RenderBlock* block = this; // Eventually block will not just be |this|, but will also be a block nested inside |this|. Assign to a variable
761 RenderBlockFlow* RenderBlock::columnsBlockForSpanningElement(RenderObject* newChild)
790 void RenderBlock::addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild)
891 RenderBlock* newBox = createAnonymousBlock();
905 void RenderBlock::addChild(RenderObject* newChild, RenderObject* beforeChild)
913 void RenderBlock::addChildIgnoringContinuation(RenderObject* newChild, RenderObject* beforeChild)
961 void RenderBlock::deleteLineBoxTree()
969 void RenderBlock::makeChildrenNonInline(RenderObject *insertionPoint)
998 RenderBlock* block = createAnonymousBlock();
1011 void RenderBlock::removeLeftoverAnonymousBlock(RenderBlock* child)
1088 void RenderBlock::collapseAnonymousBlockChild(RenderBlock* parent, RenderBlock* child)
1110 void RenderBlock::removeChild(RenderObject* oldChild)
1134 RenderBlock* inlineChildrenBlock = prev->childrenInline() ? prevBlock : nextBlock;
1135 RenderBlock
1183 RenderBlock* anonymousBlock = toRenderBlock((prev && prev->isAnonymousBlock()) ? prev : next);
1224 bool RenderBlock::isSelfCollapsingBlock() const
1256 for (RenderBlock* cb = containingBlock(); !cb->isRenderView(); cb = cb->containingBlock()) {
1285 void RenderBlock::startDelayUpdateScrollInfo()
1295 void RenderBlock::finishDelayUpdateScrollInfo()
1306 RenderBlock* block = *it;
1314 void RenderBlock::updateScrollInfoAfterLayout()
1333 void RenderBlock::layout()
1352 bool RenderBlock::updateImageLoadingPriorities()
1385 void RenderBlock::computeRegionRangeForBlock(RenderFlowThread* flowThread)
1391 bool RenderBlock::updateLogicalWidthAndColumnWidth()
1405 void RenderBlock::layoutBlock(bool)
1411 void RenderBlock::addOverflowFromChildren()
1428 void RenderBlock::computeOverflow(LayoutUnit oldClientAfterEdge, bool)
1458 void RenderBlock::addOverflowFromBlockChildren()
1466 void RenderBlock::addOverflowFromPositionedObjects()
1483 void RenderBlock::addVisualOverflowFromTheme()
1493 bool RenderBlock::createsBlockFormattingContext() const
1499 void RenderBlock::updateBlockChildDirtyBitsBeforeLayout(bool relayoutChildren, RenderBox* child)
1511 void RenderBlock::simplifiedNormalFlowLayout()
1542 bool RenderBlock::simplifiedLayout()
1594 void RenderBlock::markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLayoutScope& layoutScope)
1625 LayoutUnit RenderBlock::marginIntrinsicLogicalWidthForChild(RenderBox* child) const
1640 void RenderBlock::layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior info)
1709 void RenderBlock::markPositionedObjectsForLayout()
1722 void RenderBlock::markForPaginationRelayoutIfNeeded(SubtreeLayoutScope& layoutScope)
1732 void RenderBlock::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1779 void RenderBlock::paintColumnRules(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1867 void RenderBlock::paintColumnContents(PaintInfo& paintInfo, const LayoutPoint& paintOffset, bool paintingFloats)
1925 void RenderBlock::paintContents(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1947 void RenderBlock::paintChildren(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1953 void RenderBlock::paintChild(RenderBox* child, PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1960 void RenderBlock::paintChildAsInlineBlock(RenderBox* child, PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1967 void RenderBlock::paintAsInlineBlock(RenderObject* renderer, PaintInfo& paintInfo, const LayoutPoint& childPoint)
1998 static inline bool hasCursorCaret(const FrameSelection& selection, const RenderBlock* block, bool caretBrowsing)
2003 static inline bool hasDragCaret(const DragCaretController& dragCaretController, const RenderBlock* block, bool caretBrowsing)
2008 bool RenderBlock::hasCaret() const
2015 void RenderBlock::paintCarets(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
2030 void RenderBlock::paintObject(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
2092 RenderBlock* cb = containingBlock();
2121 RenderInline* RenderBlock::inlineElementContinuation() const
2127 RenderBlock* RenderBlock::blockElementContinuation() const
2132 RenderBlock* nextContinuation = toRenderBlock(currentContinuation);
2144 void RenderBlock::addContinuationWithOutline(RenderInline* flow)
2160 bool RenderBlock::paintsContinuationOutline(RenderInline* flow)
2173 void RenderBlock::paintContinuationOutlines(PaintInfo& info, const LayoutPoint& paintOffset)
2189 RenderBlock* block = flow->containingBlock();
2197 bool RenderBlock::shouldPaintSelectionGaps() const
2202 bool RenderBlock::isSelectionRoot() const
2228 GapRects RenderBlock::selectionGapRectsForRepaint(const RenderLayerModelObject* repaintContainer)
2249 void RenderBlock::paintSelection(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
2285 LayoutUnit RenderBlock::blockDirectionOffset(const LayoutSize& offsetFromBlock) const
2290 LayoutUnit RenderBlock::inlineDirectionOffset(const LayoutSize& offsetFromBlock) const
2295 LayoutRect RenderBlock::logicalRectToPhysicalRect(const LayoutPoint& rootBlockPhysicalPosition, const LayoutRect& logicalRect)
2307 GapRects RenderBlock::selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock,
2319 for (RenderBlock* cb = containingBlock(); cb && !cb->isRenderView(); cb = cb->containingBlock())
2350 GapRects RenderBlock::blockSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock,
2412 LayoutRect RenderBlock::blockSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock,
2433 LayoutRect RenderBlock::logicalLeftSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock,
2449 LayoutRect RenderBlock::logicalRightSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock,
2465 void RenderBlock::getSelectionGapInfo(SelectionState state, bool& leftGap, bool& rightGap)
2476 LayoutUnit RenderBlock::logicalLeftSelectionOffset(RenderBlock* rootBlock, LayoutUnit position)
2484 LayoutUnit RenderBlock::logicalRightSelectionOffset(RenderBlock* rootBlock, LayoutUnit position)
2492 RenderBlock* RenderBlock::blockBeforeWithinSelectionRoot(LayoutSize& offset) const
2511 RenderBlock* beforeBlock = toRenderBlock(sibling);
2524 void RenderBlock::insertIntoTrackedRendererMaps(RenderBox* descendant, TrackedDescendantsMap*& descendantsMap, TrackedContainerMap*& containerMap)
2543 HashSet<RenderBlock*>* containerSet = containerMap->get(descendant);
2545 containerSet = new HashSet<RenderBlock*>;
2552 void RenderBlock::removeFromTrackedRendererMaps(RenderBox* descendant, TrackedDescendantsMap*& descendantsMap, TrackedContainerMap*& containerMap)
2557 OwnPtr<HashSet<RenderBlock*> > containerSet = containerMap->take(descendant);
2561 HashSet<RenderBlock*>::iterator end = containerSet->end();
2562 for (HashSet<RenderBlock*>::iterator it = containerSet->begin(); it != end; ++it) {
2563 RenderBlock* container = *it;
2582 TrackedRendererListHashSet* RenderBlock::positionedObjects() const
2589 void RenderBlock::insertPositionedObject(RenderBox* o)
2599 void RenderBlock::removePositionedObject(RenderBox* o)
2604 void RenderBlock::removePositionedObjects(RenderBlock* o, ContainingBlockState containingBlockState)
2638 void RenderBlock::addPercentHeightDescendant(RenderBox* descendant)
2643 void RenderBlock::removePercentHeightDescendant(RenderBox* descendant)
2648 TrackedRendererListHashSet* RenderBlock::percentHeightDescendants() const
2653 bool RenderBlock::hasPercentHeightContainerMap()
2658 bool RenderBlock::hasPercentHeightDescendant(RenderBox* descendant)
2667 void RenderBlock::dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope& layoutScope)
2691 void RenderBlock::removePercentHeightDescendantIfNeeded(RenderBox* descendant)
2705 void RenderBlock::clearPercentHeightDescendantsFrom(RenderBox* parent)
2720 LayoutUnit RenderBlock::textIndentOffset() const
2728 void RenderBlock::markLinesDirtyInBlockRange(LayoutUnit logicalTop, LayoutUnit logicalBottom, RootInlineBox* highest)
2746 bool RenderBlock::avoidsFloats() const
2752 bool RenderBlock::isPointInOverflowControl(HitTestResult& result, const LayoutPoint& locationInContainer, const LayoutPoint& accumulatedOffset)
2760 Node* RenderBlock::nodeForHitTest() const
2768 bool RenderBlock::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction)
2867 ColumnRectIterator(const RenderBlock& block)
2913 const RenderBlock& m_block;
2923 bool RenderBlock::hitTestColumns(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction)
2949 void RenderBlock::adjustForColumnRect(LayoutSize& offset, const LayoutPoint& locationInContainer) const
2960 bool RenderBlock::hitTestContents(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction)
2981 Position RenderBlock::positionForBox(InlineBox *box, bool start) const
3007 static PositionWithAffinity positionForPointRespectingEditingBoundaries(RenderBlock* parent, RenderBox* child, const LayoutPoint& pointInParentCoordinates)
3039 PositionWithAffinity RenderBlock::positionForPointWithInlineChildren(const LayoutPoint& pointInLogicalContents)
3132 PositionWithAffinity RenderBlock::positionForPoint(const LayoutPoint& point)
3186 void RenderBlock::offsetForContents(LayoutPoint& offset) const
3199 LayoutUnit RenderBlock::availableLogicalWidth() const
3207 int RenderBlock::columnGap() const
3214 void RenderBlock::calcColumnWidth()
3248 bool RenderBlock::requiresColumns(int desiredColumnCount) const
3260 void RenderBlock::setDesiredColumnCountAndWidth(int count, LayoutUnit width)
3290 LayoutUnit RenderBlock::desiredColumnWidth() const
3297 ColumnInfo* RenderBlock::columnInfo() const
3304 unsigned RenderBlock::columnCount(ColumnInfo* colInfo) const
3311 LayoutRect RenderBlock
3335 void RenderBlock::adjustPointToColumnContents(LayoutPoint& point) const
3422 void RenderBlock::adjustRectForColumns(LayoutRect& r) const
3481 LayoutPoint RenderBlock::flipForWritingModeIncludingColumns(const LayoutPoint& point) const
3494 void RenderBlock::adjustStartEdgeForWritingModeIncludingColumns(LayoutRect& rect) const
3510 LayoutSize RenderBlock::columnOffset(const LayoutPoint& point) const
3549 void RenderBlock::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const
3553 toRenderBlockFlow(const_cast<RenderBlock*>(this))->computeInlinePreferredLogicalWidths(minLogicalWidth, maxLogicalWidth);
3577 void RenderBlock::computePreferredLogicalWidths()
3618 void RenderBlock::adjustIntrinsicLogicalWidthsForColumns(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const
3642 void RenderBlock::computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const
3648 RenderBlock* containingBlock = this->containingBlock();
3740 bool RenderBlock::hasLineIfEmpty() const
3754 LayoutUnit RenderBlock::lineHeight(bool firstLine, LineDirectionMode direction, LinePositionMode linePositionMode) const
3767 int RenderBlock::beforeMarginInLineDirection(LineDirectionMode direction) const
3772 int RenderBlock::baselinePosition(FontBaseline baselineType, bool firstLine, LineDirectionMode direction, LinePositionMode linePositionMode) const
3820 LayoutUnit RenderBlock::minLineHeightForReplacedRenderer(bool isFirstLine, LayoutUnit replacedHeight) const
3831 int RenderBlock::firstLineBoxBaseline() const
3855 int RenderBlock::inlineBlockBaseline(LineDirectionMode direction) const
3865 int RenderBlock::lastLineBoxBaseline(LineDirectionMode lineDirection) const
3901 RenderBlock* RenderBlock::firstLineBlock() const
3903 RenderBlock* firstLineBlock = const_cast<RenderBlock*>(this);
3960 static inline RenderObject* findFirstLetterBlock(RenderBlock* start)
3990 void RenderBlock::updateFirstLetterStyle(RenderObject* firstLetterBlock, RenderObject* currentChild)
4023 // To prevent removal of single anonymous block in RenderBlock::removeChild and causing
4072 void RenderBlock::createFirstLetterRenderer(RenderObject* firstLetterBlock, RenderObject* currentChild, unsigned length)
4120 void RenderBlock::updateFirstLetter()
4195 static int getHeightForLineCount(RenderBlock* block, int l, bool includeBottom, int& count)
4222 RootInlineBox* RenderBlock::lineAtIndex(int i) const
4245 int RenderBlock::lineCount(const RootInlineBox* stopRootInlineBox, bool* found) const
4274 int RenderBlock::heightForLineCount(int l)
4280 void RenderBlock::adjustForBorderFit(LayoutUnit x, LayoutUnit& left, LayoutUnit& right) const
4308 void RenderBlock::fitBorderToLinesIfNeeded()
4334 void RenderBlock::clearTruncation()
4350 void RenderBlock::setPaginationStrut(LayoutUnit strut)
4360 void RenderBlock::setPageLogicalOffset(LayoutUnit logicalOffset)
4370 void RenderBlock::setBreakAtLineToAvoidWidow(int lineToBreak)
4380 void RenderBlock::setDidBreakAtLineToAvoidWidow()
4391 void RenderBlock::clearDidBreakAtLineToAvoidWidow()
4399 void RenderBlock::clearShouldBreakAtLineToAvoidWidow() const
4408 void RenderBlock::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumulatedOffset) const
4424 void RenderBlock::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const
4441 LayoutRect RenderBlock::rectWithOutlineForPaintInvalidation(const RenderLayerModelObject* paintInvalidationContainer, LayoutUnit outlineWidth) const
4449 RenderObject* RenderBlock::hoverAncestor() const
4454 void RenderBlock::updateDragState(bool dragOn)
4461 RenderStyle* RenderBlock::outlineStyleForPaintInvalidation() const
4466 void RenderBlock::childBecameNonInline(RenderObject*)
4474 void RenderBlock::updateHitTestResult(HitTestResult& result, const LayoutPoint& point)
4487 LayoutRect RenderBlock::localCaretRect(InlineBox* inlineBox, int caretOffset, LayoutUnit* extraWidthToEndOfLine)
4517 void RenderBlock::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer)
4553 void RenderBlock::computeSelfHitTestRects(Vector<LayoutRect>& rects, const LayoutPoint& layerOffset) const
4569 RenderBox* RenderBlock::createAnonymousBoxWithSameTypeAs(const RenderObject* parent) const
4578 LayoutUnit RenderBlock::nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule pageBoundaryRule) const
4591 LayoutUnit RenderBlock::pageLogicalTopForOffset(LayoutUnit offset) const
4608 LayoutUnit RenderBlock::pageLogicalHeightForOffset(LayoutUnit offset) const
4617 LayoutUnit RenderBlock::pageRemainingLogicalHeightForOffset(LayoutUnit offset, PageBoundaryRule pageBoundaryRule) const
4637 LayoutUnit RenderBlock::adjustForUnsplittableChild(RenderBox* child, LayoutUnit logicalOffset, bool includeMargins)
4656 void RenderBlock::setPageBreak(LayoutUnit offset, LayoutUnit spaceShortage)
4662 void RenderBlock::updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeight)
4688 void RenderBlock::adjustLinePositionForPagination(RootInlineBox* lineBox, LayoutUnit& delta, RenderFlowThread* flowThread)
4757 LayoutUnit RenderBlock::offsetFromLogicalTopOfFirstPage() const
4778 LayoutUnit RenderBlock::collapsedMarginBeforeForChild(const RenderBox* child) const
4795 LayoutUnit RenderBlock::collapsedMarginAfterForChild(const RenderBox* child) const
4812 bool RenderBlock::hasMarginBeforeQuirk(const RenderBox* child) const
4829 bool RenderBlock::hasMarginAfterQuirk(const RenderBox* child) const
4846 const char* RenderBlock::renderName() const
4852 return "RenderBlock (floating)";
4854 return "RenderBlock (positioned)";
4856 return "RenderBlock (anonymous multi-column)";
4858 return "RenderBlock (anonymous multi-column span)";
4860 return "RenderBlock (anonymous)";
4863 return "RenderBlock (generated)";
4865 return "RenderBlock (generated)";
4867 return "RenderBlock (relative positioned)";
4869 return "RenderBlock (sticky positioned)";
4870 return "RenderBlock";
4873 RenderBlock* RenderBlock::createAnonymousWithParentRendererAndDisplay(const RenderObject* parent, EDisplay display)
4877 RenderBlock* newBox = 0;
4895 RenderBlockFlow* RenderBlock::createAnonymousColumnsWithParentRenderer(const RenderObject* parent)
4905 RenderBlockFlow* RenderBlock::createAnonymousColumnSpanWithParentRenderer(const RenderObject* parent)
4924 bool RenderBlock::recalcChildOverflowAfterStyleChange()
4965 RenderBlock* block = toRenderBlock(box);
4974 bool RenderBlock::recalcOverflowAfterStyleChange()
5001 void RenderBlock::checkPositionedObjectsNeedLayout()
5015 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* markedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const RenderObject* obj) const