Home | History | Annotate | Download | only in rendering

Lines Matching defs:RenderBox

27 #include "core/rendering/RenderBox.h"
69 typedef WTF::HashMap<const RenderBox*, LayoutUnit> OverrideSizeMap;
82 static bool skipBodyBackground(const RenderBox* bodyElementRenderer)
93 RenderBox::RenderBox(ContainerNode* node)
102 void RenderBox::willBeDestroyed()
114 void RenderBox::removeFloatingOrPositionedChildFromBlockLists()
141 void RenderBox::styleWillChange(StyleDifference diff, const RenderStyle& newStyle)
175 void RenderBox::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle)
221 void RenderBox::updateShapeOutsideInfoAfterStyleChange(const RenderStyle& style, const RenderStyle* oldStyle)
245 void RenderBox::updateGridPositionAfterStyleChange(const RenderStyle* oldStyle)
263 void RenderBox::updateFromStyle()
297 void RenderBox::layout()
319 LayoutUnit RenderBox::clientWidth() const
324 LayoutUnit RenderBox::clientHeight() const
329 int RenderBox::pixelSnappedClientWidth() const
334 int RenderBox::pixelSnappedClientHeight() const
339 int RenderBox::pixelSnappedOffsetWidth() const
344 int RenderBox::pixelSnappedOffsetHeight() const
349 LayoutUnit RenderBox::scrollWidth() const
360 LayoutUnit RenderBox::scrollHeight() const
369 LayoutUnit RenderBox::scrollLeft() const
374 LayoutUnit RenderBox::scrollTop() const
379 int RenderBox::pixelSnappedScrollWidth() const
384 int RenderBox::pixelSnappedScrollHeight() const
393 void RenderBox::setScrollLeft(LayoutUnit newLeft)
403 void RenderBox::setScrollTop(LayoutUnit newTop)
412 void RenderBox::scrollToOffset(const IntSize& offset)
440 void RenderBox::scrollRectToVisible(const LayoutRect& rect, const ScrollAlignment& alignX, const ScrollAlignment& alignY)
445 RenderBox* parentBox = 0;
506 void RenderBox::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumulatedOffset) const
511 void RenderBox::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const
516 void RenderBox::updateLayerTransformAfterLayout()
523 LayoutUnit RenderBox::constrainLogicalWidthByMinMax(LayoutUnit logicalWidth, LayoutUnit availableWidth, RenderBlock* cb) const
531 LayoutUnit RenderBox::constrainLogicalHeightByMinMax(LayoutUnit logicalHeight, LayoutUnit intrinsicContentHeight) const
542 LayoutUnit RenderBox::constrainContentBoxLogicalHeightByMinMax(LayoutUnit logicalHeight, LayoutUnit intrinsicContentHeight) const
553 IntRect RenderBox::absoluteContentBox() const
562 FloatQuad RenderBox::absoluteContentQuad() const
568 void RenderBox::addFocusRingRects(Vector<LayoutRect>& rects, const LayoutPoint& additionalOffset, const RenderLayerModelObject*) const
574 bool RenderBox::canResize() const
582 void RenderBox::addLayerHitTestRects(LayerHitTestRects& layerRects, const RenderLayer* currentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) const
588 void RenderBox::computeSelfHitTestRects(Vector<LayoutRect>& rects, const LayoutPoint& layerOffset) const
594 int RenderBox::reflectionOffset() const
603 LayoutRect RenderBox::reflectedRect(const LayoutRect& r) const
627 int RenderBox::verticalScrollbarWidth() const
635 int RenderBox::horizontalScrollbarHeight() const
643 int RenderBox::instrinsicScrollbarLogicalWidth() const
661 bool RenderBox::scroll(ScrollDirection direction, ScrollGranularity granularity, float delta)
675 bool RenderBox::canBeScrolledAndHasScrollableArea() const
680 bool RenderBox::canBeProgramaticallyScrolled() const
696 bool RenderBox::usesCompositedScrolling() const
701 void RenderBox::autoscroll(const IntPoint& position)
715 bool RenderBox::autoscrollInProgress() const
721 bool RenderBox::canAutoscroll() const
732 IntSize RenderBox::calculateAutoscrollDirection(const IntPoint& windowPoint) const
760 RenderBox* RenderBox::findAutoscrollable(RenderObject* renderer)
792 void RenderBox::panScroll(const IntPoint& sourcePoint)
817 void RenderBox::scrollByRecursively(const IntSize& delta, ScrollOffsetClamping clamp)
833 if (RenderBox* scrollableBox = enclosingScrollableBox())
850 bool RenderBox::needsPreferredWidthsRecalculation() const
855 IntSize RenderBox::scrolledContentOffset() const
862 void RenderBox::applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& paintRect) const
877 // height() is inaccurate if we're in the middle of a layout of this RenderBox, so use the
885 void RenderBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const
891 LayoutUnit RenderBox::minPreferredLogicalWidth() const
895 SetLayoutNeededForbiddenScope layoutForbiddenScope(const_cast<RenderBox&>(*this));
897 const_cast<RenderBox*>(this)->computePreferredLogicalWidths();
903 LayoutUnit RenderBox::maxPreferredLogicalWidth() const
907 SetLayoutNeededForbiddenScope layoutForbiddenScope(const_cast<RenderBox&>(*this));
909 const_cast<RenderBox*>(this)->computePreferredLogicalWidths();
915 bool RenderBox::hasOverrideHeight() const
920 bool RenderBox::hasOverrideWidth() const
925 void RenderBox::setOverrideLogicalContentHeight(LayoutUnit height)
931 void RenderBox::setOverrideLogicalContentWidth(LayoutUnit width)
937 void RenderBox::clearOverrideLogicalContentHeight()
943 void RenderBox::clearOverrideLogicalContentWidth()
949 void RenderBox::clearOverrideSize()
955 LayoutUnit RenderBox::overrideLogicalContentWidth() const
961 LayoutUnit RenderBox::overrideLogicalContentHeight() const
967 LayoutUnit RenderBox::overrideContainingBlockContentLogicalWidth() const
973 LayoutUnit RenderBox::overrideContainingBlockContentLogicalHeight() const
979 bool RenderBox::hasOverrideContainingBlockLogicalWidth() const
984 bool RenderBox::hasOverrideContainingBlockLogicalHeight() const
989 void RenderBox::setOverrideContainingBlockContentLogicalWidth(LayoutUnit logicalWidth)
996 void RenderBox::setOverrideContainingBlockContentLogicalHeight(LayoutUnit logicalHeight)
1003 void RenderBox::clearContainingBlockOverrideSize()
1010 void RenderBox::clearOverrideContainingBlockContentLogicalHeight()
1016 LayoutUnit RenderBox::adjustBorderBoxLogicalWidthForBoxSizing(LayoutUnit width) const
1024 LayoutUnit RenderBox::adjustBorderBoxLogicalHeightForBoxSizing(LayoutUnit height) const
1032 LayoutUnit RenderBox::adjustContentBoxLogicalWidthForBoxSizing(LayoutUnit width) const
1039 LayoutUnit RenderBox::adjustContentBoxLogicalHeightForBoxSizing(LayoutUnit height) const
1047 bool RenderBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction action)
1072 void RenderBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1078 void RenderBox::paintBoxDecorationBackground(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1084 bool RenderBox::getBackgroundPaintedExtent(LayoutRect& paintedExtent)
1108 bool RenderBox::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const
1148 static bool isCandidateForOpaquenessTest(RenderBox* childBox)
1172 bool RenderBox::foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const
1179 RenderBox* childBox = toRenderBox(child);
1203 bool RenderBox::computeBackgroundIsKnownToBeObscured()
1221 bool RenderBox::backgroundHasOpaqueTopLayer() const
1244 void RenderBox::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1249 void RenderBox::paintClippingMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
1254 void RenderBox::imageChanged(WrappedImagePtr image, const IntRect*)
1280 bool RenderBox::paintInvalidationLayerRectsForImage(WrappedImagePtr image, const FillLayer& layers, bool drawingBackground)
1306 InvalidationReason RenderBox::invalidatePaintIfNeeded(const PaintInvalidationState& paintInvalidationState, const RenderLayerModelObject& newPaintInvalidationContainer)
1340 void RenderBox::clearPaintInvalidationState(const PaintInvalidationState& paintInvalidationState)
1349 bool RenderBox::paintInvalidationStateIsDirty() const
1359 bool RenderBox::pushContentsClip(PaintInfo& paintInfo, const LayoutPoint& accumulatedOffset, ContentsClipBehavior contentsClipBehavior)
1405 void RenderBox::popContentsClip(PaintInfo& paintInfo, PaintPhase originalPhase, const LayoutPoint& accumulatedOffset)
1418 LayoutRect RenderBox::overflowClipRect(const LayoutPoint& location, OverlayScrollbarSizeRelevancy relevancy)
1437 LayoutRect RenderBox::clipRect(const LayoutPoint& location)
1473 LayoutUnit RenderBox::shrinkLogicalWidthToAvoidFloats(LayoutUnit childMarginStart, LayoutUnit childMarginEnd, const RenderBlockFlow* cb) const
1496 LayoutUnit RenderBox::containingBlockLogicalWidthForContent() const
1505 LayoutUnit RenderBox::containingBlockLogicalHeightForContent(AvailableLogicalHeightType heightType) const
1514 LayoutUnit RenderBox::containingBlockAvailableLineWidth() const
1522 LayoutUnit RenderBox::perpendicularContainingBlockLogicalHeight() const
1547 void RenderBox::mapLocalToContainer(const RenderLayerModelObject* paintInvalidationContainer, TransformState& transformState, MapCoordinatesFlags mode, bool* wasFixed, const PaintInvalidationState* paintInvalidationState) const
1600 void RenderBox::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, TransformState& transformState) const
1614 LayoutSize RenderBox::offsetFromContainer(const RenderObject* o, const LayoutPoint& point, bool* offsetDependsOnPoint) const
1658 InlineBox* RenderBox::createInlineBox()
1663 void RenderBox::dirtyLineBoxes(bool fullLayout)
1676 void RenderBox::positionLineBox(InlineBox* box)
1711 void RenderBox::moveWithEdgeOfInlineContainerIfNecessary(bool isHorizontal)
1722 void RenderBox::deleteLineBoxWrapper()
1733 LayoutRect RenderBox::clippedOverflowRectForPaintInvalidation(const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationState) const
1747 void RenderBox::mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* paintInvalidationState) const
1827 RenderBox* containerBox = toRenderBox(o);
1846 void RenderBox::inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect& paintInvalidationRect) const
1855 void RenderBox::invalidatePaintForOverhangingFloats(bool)
1859 void RenderBox::updateLogicalWidth()
1870 static float getMaxWidthListMarker(const RenderBox* renderer)
1884 RenderBox* listItem = toRenderBox(child);
1888 RenderBox* itemMarker = toRenderBox(itemChild);
1899 void RenderBox::computeLogicalWidth(LogicalExtentComputedValues& computedValues) const
1987 LayoutUnit RenderBox::fillAvailableMeasure(LayoutUnit availableLogicalWidth) const
1994 LayoutUnit RenderBox::fillAvailableMeasure(LayoutUnit availableLogicalWidth, LayoutUnit& marginStart, LayoutUnit& marginEnd) const
2001 LayoutUnit RenderBox::computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLength, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const
2026 LayoutUnit RenderBox::computeLogicalWidthUsing(SizeType widthType, const Length& logicalWidth, LayoutUnit availableLogicalWidth, const RenderBlock* cb) const
2071 bool RenderBox::sizesLogicalWidthToFitContent(const Length& logicalWidth) const
2123 bool RenderBox::autoWidthShouldFitContent() const
2129 void RenderBox::computeMarginsForDirection(MarginDirection flowDirection, const RenderBlock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUnit& marginStart, LayoutUnit& marginEnd, Length marginStartLength, Length marginEndLength) const
2207 void RenderBox::updateLogicalHeight()
2220 void RenderBox::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const
2315 LayoutUnit RenderBox::computeLogicalHeightUsing(const Length& height, LayoutUnit intrinsicContentHeight) const
2323 LayoutUnit RenderBox::computeContentLogicalHeight(const Length& height, LayoutUnit intrinsicContentHeight) const
2331 LayoutUnit RenderBox::computeIntrinsicLogicalContentHeightUsing(const Length& logicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) const
2348 LayoutUnit RenderBox::computeContentAndScrollbarLogicalHeightUsing(const Length& height, LayoutUnit intrinsicContentHeight) const
2364 bool RenderBox::skipContainingBlockForPercentHeightCalculation(const RenderBox* containingBlock) const
2378 LayoutUnit RenderBox::computePercentageLogicalHeight(const Length& height) const
2384 const RenderBox* containingBlockChild = this;
2393 cb->addPercentHeightDescendant(const_cast<RenderBox*>(this));
2472 LayoutUnit RenderBox::computeReplacedLogicalWidth(ShouldComputePreferred shouldComputePreferred) const
2477 LayoutUnit RenderBox::computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logicalWidth, ShouldComputePreferred shouldComputePreferred) const
2484 LayoutUnit RenderBox::computeReplacedLogicalWidthUsing(const Length& logicalWidth) const
2527 LayoutUnit RenderBox::computeReplacedLogicalHeight() const
2532 bool RenderBox::logicalHeightComputesAsNone(SizeType sizeType) const
2553 LayoutUnit RenderBox::computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit logicalHeight) const
2566 LayoutUnit RenderBox::computeReplacedLogicalHeightUsing(const Length& logicalHeight) const
2578 toRenderBlock(cb)->addPercentHeightDescendant(const_cast<RenderBox*>(this));
2612 toRenderBlock(cb)->addPercentHeightDescendant(const_cast<RenderBox*>(this));
2628 LayoutUnit RenderBox::availableLogicalHeight(AvailableLogicalHeightType heightType) const
2634 LayoutUnit RenderBox::availableLogicalHeightUsing(const Length& h, AvailableLogicalHeightType heightType) const
2677 void RenderBox::computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock)
2690 LayoutUnit RenderBox::containingBlockLogicalWidthForPositioned(const RenderBoxModelObject* containingBlock, bool checkForPerpendicularWritingMode) const
2730 LayoutUnit RenderBox::containingBlockLogicalHeightForPositioned(const RenderBoxModelObject* containingBlock, bool checkForPerpendicularWritingMode) const
2770 static void computeInlineStaticDistance(Length& logicalLeft, Length& logicalRight, const RenderBox* child, const RenderBoxModelObject* containerBlock, LayoutUnit containerLogicalWidth)
2794 RenderBox* enclosingBox = child->parent()->enclosingBox();
2820 void RenderBox::computePositionedLogicalWidth(LogicalExtentComputedValues& computedValues) const
2933 static void computeLogicalLeftPositionedOffset(LayoutUnit& logicalLeftPos, const RenderBox* child, LayoutUnit logicalWidthValue, const RenderBoxModelObject* containerBlock, LayoutUnit containerLogicalWidth)
2945 void RenderBox::shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logicalLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues& computedValues) const
2954 void RenderBox::computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBoxModelObject* containerBlock, TextDirection containerDirection,
3138 static void computeBlockStaticDistance(Length& logicalTop, Length& logicalBottom, const RenderBox* child, const RenderBoxModelObject* containerBlock)
3152 void RenderBox::computePositionedLogicalHeight(LogicalExtentComputedValues& computedValues) const
3244 static void computeLogicalTopPositionedOffset(LayoutUnit& logicalTopPos, const RenderBox* child, LayoutUnit logicalHeightValue, const RenderBoxModelObject* containerBlock, LayoutUnit containerLogicalHeight)
3266 void RenderBox::computePositionedLogicalHeightUsing(Length logicalHeightLength, const RenderBoxModelObject* containerBlock,
3396 void RenderBox::computePositionedLogicalWidthReplaced(LogicalExtentComputedValues& computedValues) const
3565 void RenderBox::computePositionedLogicalHeightReplaced(LogicalExtentComputedValues& computedValues) const
3694 LayoutRect RenderBox::localCaretRect(InlineBox* box, int caretOffset, LayoutUnit* extraWidthToEndOfLine)
3746 PositionWithAffinity RenderBox::positionForPoint(const LayoutPoint& point)
3766 RenderBox* closestRenderer = 0;
3779 RenderBox* renderer = toRenderBox(renderObject);
3830 bool RenderBox::shrinkToAvoidFloats() const
3846 bool RenderBox::avoidsFloats() const
3851 InvalidationReason RenderBox::getPaintInvalidationReason(const RenderLayerModelObject& paintInvalidationContainer,
3888 void RenderBox::incrementallyInvalidatePaint(const RenderLayerModelObject& paintInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const LayoutPoint& positionFromPaintInvalidationBacking)
3941 void RenderBox::invalidatePaintRectClippedByOldAndNewBounds(const RenderLayerModelObject& paintInvalidationContainer, const LayoutRect& rect, const LayoutRect& oldBounds, const LayoutRect& newBounds)
3959 void RenderBox::markForPaginationRelayoutIfNeeded(SubtreeLayoutScope& layoutScope)
3968 void RenderBox::addVisualEffectOverflow()
3979 LayoutBoxExtent RenderBox::computeVisualEffectOverflowExtent() const
4029 void RenderBox::addOverflowFromChild(RenderBox* child, const LayoutSize& delta)
4052 void RenderBox::addLayoutOverflow(const LayoutRect& rect)
4095 void RenderBox::addVisualOverflow(const LayoutRect& rect)
4107 void RenderBox::addContentsVisualOverflow(const LayoutRect& rect)
4119 void RenderBox::clearLayoutOverflow()
4132 inline static bool percentageLogicalHeightIsResolvable(const RenderBox* box)
4134 return RenderBox::percentageLogicalHeightIsResolvableFromBlock(box->containingBlock(), box->isOutOfFlowPositioned());
4137 bool RenderBox::percentageLogicalHeightIsResolvableFromBlock(const RenderBlock* containingBlock, bool isOutOfFlowPositioned)
4181 bool RenderBox::hasUnsplittableScrollingOverflow() const
4198 bool RenderBox::isUnsplittableForPagination() const
4203 LayoutUnit RenderBox::lineHeight(bool /*firstLine*/, LineDirectionMode direction, LinePositionMode /*linePositionMode*/) const
4210 int RenderBox::baselinePosition(FontBaseline baselineType, bool /*firstLine*/, LineDirectionMode direction, LinePositionMode linePositionMode) const
4223 RenderLayer* RenderBox::enclosingFloatPaintingLayer() const
4235 LayoutRect RenderBox::logicalVisualOverflowRectForPropagation(RenderStyle* parentStyle) const
4243 LayoutRect RenderBox::visualOverflowRectForPropagation(RenderStyle* parentStyle) const
4261 LayoutRect RenderBox::logicalLayoutOverflowRectForPropagation(RenderStyle* parentStyle) const
4269 LayoutRect RenderBox::layoutOverflowRectForPropagation(RenderStyle* parentStyle) const
4313 LayoutRect RenderBox::noOverflowRect() const
4346 LayoutUnit RenderBox::offsetLeft() const
4351 LayoutUnit RenderBox::offsetTop() const
4356 LayoutPoint RenderBox::flipForWritingModeForChild(const RenderBox* child, const LayoutPoint& point) const
4368 void RenderBox::flipForWritingMode(LayoutRect& rect) const
4379 LayoutUnit RenderBox::flipForWritingMode(LayoutUnit position) const
4386 LayoutPoint RenderBox::flipForWritingMode(const LayoutPoint& position) const
4393 LayoutPoint RenderBox::flipForWritingModeIncludingColumns(const LayoutPoint& point) const
4400 LayoutSize RenderBox::flipForWritingMode(const LayoutSize& offset) const
4407 FloatPoint RenderBox::flipForWritingMode(const FloatPoint& position) const
4414 void RenderBox::flipForWritingMode(FloatRect& rect) const
4425 LayoutPoint RenderBox::topLeftLocation() const
4433 LayoutSize RenderBox::topLeftLocationOffset() const
4444 bool RenderBox::hasRelativeLogicalHeight() const
4451 static void markBoxForRelayoutAfterSplit(RenderBox* box)
4465 RenderObject* RenderBox::splitAnonymousBoxesAroundChild(RenderObject* beforeChild)
4470 RenderBox* boxToSplit = toRenderBox(beforeChild->parent());
4476 RenderBox* postBox = boxToSplit->createAnonymousBoxWithSameTypeAs(this);
4478 RenderBox* parentBox = toRenderBox(boxToSplit->parent());
4501 LayoutUnit RenderBox::offsetFromLogicalTopOfFirstPage() const
4514 void RenderBox::savePreviousBorderBoxSizeIfNeeded()
4538 LayoutSize RenderBox::computePreviousBorderBoxSize(const LayoutSize& previousBoundsSize) const