Changeset 182127 in webkit for trunk/Source/WebCore/rendering/RenderBox.h
- Timestamp:
- Mar 29, 2015, 7:00:20 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Source/WebCore/rendering/RenderBox.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderBox.h
r181505 r182127 86 86 LayoutUnit logicalHeight() const { return style().isHorizontalWritingMode() ? height() : width(); } 87 87 88 LayoutUnit constrainLogicalWidthInRegionByMinMax(LayoutUnit, LayoutUnit, RenderBlock*, RenderRegion* = 0) const;88 LayoutUnit constrainLogicalWidthInRegionByMinMax(LayoutUnit, LayoutUnit, RenderBlock*, RenderRegion* = nullptr) const; 89 89 LayoutUnit constrainLogicalHeightByMinMax(LayoutUnit) const; 90 90 LayoutUnit constrainContentBoxLogicalHeightByMinMax(LayoutUnit) const; … … 175 175 // Bounds of the outline box in absolute coords. Respects transforms 176 176 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* /*repaintContainer*/, const RenderGeometryMap*) const override final; 177 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer = 0) override;177 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer = nullptr) override; 178 178 179 179 virtual FloatRect repaintRectInLocalCoordinates() const override { return borderBoxRect(); } … … 265 265 LayoutUnit marginLogicalRight() const { return m_marginBox.logicalRight(style().writingMode()); } 266 266 267 virtual LayoutUnit marginBefore(const RenderStyle* overrideStyle = 0) const override final { return m_marginBox.before((overrideStyle ? overrideStyle : &style())->writingMode()); }268 virtual LayoutUnit marginAfter(const RenderStyle* overrideStyle = 0) const override final { return m_marginBox.after((overrideStyle ? overrideStyle : &style())->writingMode()); }269 virtual LayoutUnit marginStart(const RenderStyle* overrideStyle = 0) const override final267 virtual LayoutUnit marginBefore(const RenderStyle* overrideStyle = nullptr) const override final { return m_marginBox.before((overrideStyle ? overrideStyle : &style())->writingMode()); } 268 virtual LayoutUnit marginAfter(const RenderStyle* overrideStyle = nullptr) const override final { return m_marginBox.after((overrideStyle ? overrideStyle : &style())->writingMode()); } 269 virtual LayoutUnit marginStart(const RenderStyle* overrideStyle = nullptr) const override final 270 270 { 271 271 const RenderStyle* styleToUse = overrideStyle ? overrideStyle : &style(); 272 272 return m_marginBox.start(styleToUse->writingMode(), styleToUse->direction()); 273 273 } 274 virtual LayoutUnit marginEnd(const RenderStyle* overrideStyle = 0) const override final274 virtual LayoutUnit marginEnd(const RenderStyle* overrideStyle = nullptr) const override final 275 275 { 276 276 const RenderStyle* styleToUse = overrideStyle ? overrideStyle : &style(); 277 277 return m_marginBox.end(styleToUse->writingMode(), styleToUse->direction()); 278 278 } 279 void setMarginBefore(LayoutUnit value, const RenderStyle* overrideStyle = 0) { m_marginBox.setBefore((overrideStyle ? overrideStyle : &style())->writingMode(), value); }280 void setMarginAfter(LayoutUnit value, const RenderStyle* overrideStyle = 0) { m_marginBox.setAfter((overrideStyle ? overrideStyle : &style())->writingMode(), value); }281 void setMarginStart(LayoutUnit value, const RenderStyle* overrideStyle = 0)279 void setMarginBefore(LayoutUnit value, const RenderStyle* overrideStyle = nullptr) { m_marginBox.setBefore((overrideStyle ? overrideStyle : &style())->writingMode(), value); } 280 void setMarginAfter(LayoutUnit value, const RenderStyle* overrideStyle = nullptr) { m_marginBox.setAfter((overrideStyle ? overrideStyle : &style())->writingMode(), value); } 281 void setMarginStart(LayoutUnit value, const RenderStyle* overrideStyle = nullptr) 282 282 { 283 283 const RenderStyle* styleToUse = overrideStyle ? overrideStyle : &style(); 284 284 m_marginBox.setStart(styleToUse->writingMode(), styleToUse->direction(), value); 285 285 } 286 void setMarginEnd(LayoutUnit value, const RenderStyle* overrideStyle = 0)286 void setMarginEnd(LayoutUnit value, const RenderStyle* overrideStyle = nullptr) 287 287 { 288 288 const RenderStyle* styleToUse = overrideStyle ? overrideStyle : &style(); … … 339 339 #endif 340 340 341 virtual LayoutSize offsetFromContainer(RenderElement&, const LayoutPoint&, bool* offsetDependsOnPoint = 0) const override;341 virtual LayoutSize offsetFromContainer(RenderElement&, const LayoutPoint&, bool* offsetDependsOnPoint = nullptr) const override; 342 342 343 343 LayoutUnit adjustBorderBoxLogicalWidthForBoxSizing(LayoutUnit width) const; … … 414 414 415 415 RenderBoxRegionInfo* renderBoxRegionInfo(RenderRegion*, RenderBoxRegionInfoFlags = CacheRenderBoxRegionInfo) const; 416 void computeLogicalWidthInRegion(LogicalExtentComputedValues&, RenderRegion* = 0) const;416 void computeLogicalWidthInRegion(LogicalExtentComputedValues&, RenderRegion* = nullptr) const; 417 417 418 418 bool stretchesToViewport() const … … 460 460 int scrollbarLogicalHeight() const { return style().isHorizontalWritingMode() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } 461 461 virtual bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1, Element** stopElement = nullptr, RenderBox* startBox = nullptr, const IntPoint& wheelEventAbsolutePoint = IntPoint()); 462 virtual bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float multiplier = 1, Element** stopElement = 0);462 virtual bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float multiplier = 1, Element** stopElement = nullptr); 463 463 bool canBeScrolledAndHasScrollableArea() const; 464 464 virtual bool canBeProgramaticallyScrolled() const; … … 483 483 bool isUnsplittableForPagination() const; 484 484 485 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidthToEndOfLine = 0) override;485 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidthToEndOfLine = nullptr) override; 486 486 487 487 virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegion*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize, PaintPhase = PaintPhaseBlockBackground); … … 497 497 virtual void paintMask(PaintInfo&, const LayoutPoint&); 498 498 virtual void paintClippingMask(PaintInfo&, const LayoutPoint&); 499 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override;499 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override; 500 500 501 501 // Called when a positioned object moves but doesn't necessarily change size. A simplified layout is attempted … … 594 594 { 595 595 ASSERT_NOT_REACHED(); 596 return 0;596 return nullptr; 597 597 } 598 598 … … 641 641 bool backgroundHasOpaqueTopLayer() const; 642 642 643 void computePositionedLogicalWidth(LogicalExtentComputedValues&, RenderRegion* = 0) const;643 void computePositionedLogicalWidth(LogicalExtentComputedValues&, RenderRegion* = nullptr) const; 644 644 645 645 LayoutUnit computeIntrinsicLogicalWidthUsing(Length logicalWidthLength, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; … … 678 678 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* containingBlock, bool isPerpendicularWritingMode) const; 679 679 680 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObject* containingBlock, RenderRegion* = 0, bool checkForPerpendicularWritingMode = true) const;680 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObject* containingBlock, RenderRegion* = nullptr, bool checkForPerpendicularWritingMode = true) const; 681 681 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObject* containingBlock, bool checkForPerpendicularWritingMode = true) const; 682 682 … … 765 765 // only one will be notified when the renderer is getting destroyed. The second line box wrapper 766 766 // will keep a stale reference. 767 if (UNLIKELY(m_inlineBoxWrapper != 0))767 if (UNLIKELY(m_inlineBoxWrapper != nullptr)) 768 768 deleteLineBoxWrapper(); 769 769 }
Note:
See TracChangeset
for help on using the changeset viewer.