Changeset 182127 in webkit
- Timestamp:
- Mar 29, 2015 7:00:20 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r182125 r182127 1 2015-03-29 Joonghun Park <jh718.park@samsung.com> 2 3 nullptr cleanup in RenderFooBox classes 4 https://bugs.webkit.org/show_bug.cgi?id=143182 5 6 Reviewed by Ryosuke Niwa. 7 8 No new tests, no behavior changes 9 10 Replace 0 with nullptr in RenderFooBox classes. 11 12 * rendering/RenderBox.cpp: 13 (WebCore::RenderBox::RenderBox): 14 (WebCore::RenderBox::paintFillLayer): 15 (WebCore::RenderBox::shrinkLogicalWidthToAvoidFloats): 16 (WebCore::RenderBox::containingBlockAvailableLineWidthInRegion): 17 (WebCore::RenderBox::renderBoxRegionInfo): 18 (WebCore::RenderBox::computePositionedLogicalWidthUsing): 19 (WebCore::RenderBox::computePositionedLogicalHeightUsing): 20 (WebCore::RenderBox::computePositionedLogicalWidthReplaced): 21 (WebCore::RenderBox::positionForPoint): 22 (WebCore::RenderBox::layoutOverflowRectForPropagation): 23 * rendering/RenderBox.h: 24 (WebCore::RenderBox::setMarginBefore): 25 (WebCore::RenderBox::setMarginAfter): 26 (WebCore::RenderBox::setMarginStart): 27 (WebCore::RenderBox::setMarginEnd): 28 (WebCore::RenderBox::createAnonymousBoxWithSameTypeAs): 29 (WebCore::RenderBox::setInlineBoxWrapper): 30 * rendering/RenderBoxModelObject.cpp: 31 (WebCore::RenderBoxModelObject::willBeDestroyed): 32 (WebCore::RenderBoxModelObject::paintMaskForTextFillBox): 33 (WebCore::RenderBoxModelObject::paintBorderSides): 34 (WebCore::RenderBoxModelObject::firstLetterRemainingText): 35 * rendering/RenderBoxModelObject.h: 36 (WebCore::RenderBoxModelObject::moveChildTo): 37 (WebCore::RenderBoxModelObject::moveAllChildrenTo): 38 (WebCore::RenderBoxModelObject::moveChildrenTo): 39 * rendering/RenderDeprecatedFlexibleBox.cpp: 40 (WebCore::FlexBoxIterator::reset): 41 (WebCore::FlexBoxIterator::next): 42 * rendering/RenderDeprecatedFlexibleBox.h: 43 * rendering/RenderFlexibleBox.cpp: 44 (WebCore::RenderFlexibleBox::firstLineBaseline): 45 (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): 46 * rendering/RenderLineBoxList.cpp: 47 (WebCore::RenderLineBoxList::deleteLineBoxTree): 48 (WebCore::RenderLineBoxList::extractLineBox): 49 (WebCore::RenderLineBoxList::deleteLineBoxes): 50 (WebCore::RenderLineBoxList::checkConsistency): 51 * rendering/RenderLineBoxList.h: 52 (WebCore::RenderLineBoxList::RenderLineBoxList): 53 * rendering/RenderListBox.cpp: 54 (WebCore::RenderListBox::enclosingScrollableArea): 55 (WebCore::RenderListBox::setHasVerticalScrollbar): 56 * rendering/RenderListBox.h: 57 1 58 2015-03-29 Darin Adler <darin@apple.com> 2 59 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r181515 r182127 87 87 // Used by flexible boxes when flexing this element and by table cells. 88 88 typedef WTF::HashMap<const RenderBox*, LayoutUnit> OverrideSizeMap; 89 static OverrideSizeMap* gOverrideHeightMap = 0;90 static OverrideSizeMap* gOverrideWidthMap = 0;89 static OverrideSizeMap* gOverrideHeightMap = nullptr; 90 static OverrideSizeMap* gOverrideWidthMap = nullptr; 91 91 92 92 #if ENABLE(CSS_GRID_LAYOUT) … … 129 129 , m_minPreferredLogicalWidth(-1) 130 130 , m_maxPreferredLogicalWidth(-1) 131 , m_inlineBoxWrapper( 0)131 , m_inlineBoxWrapper(nullptr) 132 132 { 133 133 setIsBox(); … … 138 138 , m_minPreferredLogicalWidth(-1) 139 139 , m_maxPreferredLogicalWidth(-1) 140 , m_inlineBoxWrapper( 0)140 , m_inlineBoxWrapper(nullptr) 141 141 { 142 142 setIsBox(); … … 1611 1611 BackgroundBleedAvoidance bleedAvoidance, CompositeOperator op, RenderElement* backgroundObject, BaseBackgroundColorUsage baseBgColorUsage) 1612 1612 { 1613 paintFillLayerExtended(paintInfo, c, fillLayer, rect, bleedAvoidance, 0, LayoutSize(), op, backgroundObject, baseBgColorUsage);1613 paintFillLayerExtended(paintInfo, c, fillLayer, rect, bleedAvoidance, nullptr, LayoutSize(), op, backgroundObject, baseBgColorUsage); 1614 1614 } 1615 1615 … … 1806 1806 LayoutUnit RenderBox::shrinkLogicalWidthToAvoidFloats(LayoutUnit childMarginStart, LayoutUnit childMarginEnd, const RenderBlock* cb, RenderRegion* region) const 1807 1807 { 1808 RenderRegion* containingBlockRegion = 0;1808 RenderRegion* containingBlockRegion = nullptr; 1809 1809 LayoutUnit logicalTopPosition = logicalTop(); 1810 1810 if (region) { … … 1890 1890 { 1891 1891 RenderBlock* cb = containingBlock(); 1892 RenderRegion* containingBlockRegion = 0;1892 RenderRegion* containingBlockRegion = nullptr; 1893 1893 LayoutUnit logicalTopPosition = logicalTop(); 1894 1894 if (region) { … … 2566 2566 // Make sure nobody is trying to call this with a null region. 2567 2567 if (!region) 2568 return 0;2568 return nullptr; 2569 2569 2570 2570 // If we have computed our width in this region already, it will be cached, and we can … … 2579 2579 RenderFlowThread* flowThread = flowThreadContainingBlock(); 2580 2580 if (isRenderFlowThread() || !flowThread || !canHaveBoxInfoInRegion() || flowThread->style().writingMode() != style().writingMode()) 2581 return 0;2581 return nullptr; 2582 2582 2583 2583 LogicalExtentComputedValues computedValues; … … 3407 3407 LayoutUnit logicalLeftValue = 0; 3408 3408 3409 const LayoutUnit containerRelativeLogicalWidth = containingBlockLogicalWidthForPositioned(containerBlock, 0, false);3409 const LayoutUnit containerRelativeLogicalWidth = containingBlockLogicalWidthForPositioned(containerBlock, nullptr, false); 3410 3410 3411 3411 bool logicalWidthIsAuto = logicalWidth.isIntrinsicOrAuto(); … … 3733 3733 LayoutUnit contentLogicalHeight = logicalHeight - bordersPlusPadding; 3734 3734 3735 const LayoutUnit containerRelativeLogicalWidth = containingBlockLogicalWidthForPositioned(containerBlock, 0, false);3735 const LayoutUnit containerRelativeLogicalWidth = containingBlockLogicalWidthForPositioned(containerBlock, nullptr, false); 3736 3736 3737 3737 LayoutUnit logicalTopValue = 0; … … 3892 3892 \*-----------------------------------------------------------------------*/ 3893 3893 // see FIXME 1 3894 computeInlineStaticDistance(logicalLeft, logicalRight, this, containerBlock, containerLogicalWidth, 0); // FIXME: Pass the region.3894 computeInlineStaticDistance(logicalLeft, logicalRight, this, containerBlock, containerLogicalWidth, nullptr); // FIXME: Pass the region. 3895 3895 3896 3896 /*-----------------------------------------------------------------------*\ … … 4216 4216 // Pass off to the closest child. 4217 4217 LayoutUnit minDist = LayoutUnit::max(); 4218 RenderBox* closestRenderer = 0;4218 RenderBox* closestRenderer = nullptr; 4219 4219 LayoutPoint adjustedPoint = point; 4220 4220 if (isTableRow()) … … 4811 4811 markBoxForRelayoutAfterSplit(*parentBox); 4812 4812 parentBox->insertChildInternal(postBox, boxToSplit.nextSibling(), NotifyChildren); 4813 boxToSplit.moveChildrenTo(postBox, beforeChild, 0, true);4813 boxToSplit.moveChildrenTo(postBox, beforeChild, nullptr, true); 4814 4814 4815 4815 markBoxForRelayoutAfterSplit(boxToSplit); -
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 } -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r180661 r182127 84 84 // renderers to their remaining text fragments. 85 85 typedef HashMap<const RenderBoxModelObject*, RenderTextFragment*> FirstLetterRemainingTextMap; 86 static FirstLetterRemainingTextMap* firstLetterRemainingTextMap = 0;86 static FirstLetterRemainingTextMap* firstLetterRemainingTextMap = nullptr; 87 87 88 88 void RenderBoxModelObject::setSelectionState(SelectionState state) … … 196 196 // entry needs to be cleared from the map. 197 197 if (firstLetterRemainingText()) 198 setFirstLetterRemainingText( 0);198 setFirstLetterRemainingText(nullptr); 199 199 200 200 if (!documentBeingDestroyed()) … … 616 616 // Now add the text to the clip. We do this by painting using a special paint phase that signals to 617 617 // InlineTextBoxes that they should just add their contents to the clip. 618 PaintInfo info(maskImageContext, maskRect, PaintPhaseTextClip, PaintBehaviorForceBlackText , 0);618 PaintInfo info(maskImageContext, maskRect, PaintPhaseTextClip, PaintBehaviorForceBlackText); 619 619 if (box) { 620 620 const RootInlineBox& rootBox = box->root(); … … 1637 1637 1638 1638 bool usePath = renderRadii && (borderStyleHasInnerDetail(edges[BSTop].style()) || borderWillArcInnerEdge(innerBorder.radii().topLeft(), innerBorder.radii().topRight())); 1639 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSTop, BSLeft, BSRight, edges, usePath ? &roundedPath : 0, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor);1639 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSTop, BSLeft, BSRight, edges, usePath ? &roundedPath : nullptr, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor); 1640 1640 } 1641 1641 … … 1645 1645 1646 1646 bool usePath = renderRadii && (borderStyleHasInnerDetail(edges[BSBottom].style()) || borderWillArcInnerEdge(innerBorder.radii().bottomLeft(), innerBorder.radii().bottomRight())); 1647 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSBottom, BSLeft, BSRight, edges, usePath ? &roundedPath : 0, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor);1647 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSBottom, BSLeft, BSRight, edges, usePath ? &roundedPath : nullptr, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor); 1648 1648 } 1649 1649 … … 1653 1653 1654 1654 bool usePath = renderRadii && (borderStyleHasInnerDetail(edges[BSLeft].style()) || borderWillArcInnerEdge(innerBorder.radii().bottomLeft(), innerBorder.radii().topLeft())); 1655 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSLeft, BSTop, BSBottom, edges, usePath ? &roundedPath : 0, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor);1655 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSLeft, BSTop, BSBottom, edges, usePath ? &roundedPath : nullptr, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor); 1656 1656 } 1657 1657 … … 1661 1661 1662 1662 bool usePath = renderRadii && (borderStyleHasInnerDetail(edges[BSRight].style()) || borderWillArcInnerEdge(innerBorder.radii().bottomRight(), innerBorder.radii().topRight())); 1663 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSRight, BSTop, BSBottom, edges, usePath ? &roundedPath : 0, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor);1663 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSRight, BSTop, BSBottom, edges, usePath ? &roundedPath : nullptr, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor); 1664 1664 } 1665 1665 } … … 2532 2532 { 2533 2533 if (!firstLetterRemainingTextMap) 2534 return 0;2534 return nullptr; 2535 2535 return firstLetterRemainingTextMap->get(this); 2536 2536 } -
trunk/Source/WebCore/rendering/RenderBoxModelObject.h
r180644 r182127 185 185 virtual LayoutUnit marginLeft() const = 0; 186 186 virtual LayoutUnit marginRight() const = 0; 187 virtual LayoutUnit marginBefore(const RenderStyle* otherStyle = 0) const = 0;188 virtual LayoutUnit marginAfter(const RenderStyle* otherStyle = 0) const = 0;189 virtual LayoutUnit marginStart(const RenderStyle* otherStyle = 0) const = 0;190 virtual LayoutUnit marginEnd(const RenderStyle* otherStyle = 0) const = 0;187 virtual LayoutUnit marginBefore(const RenderStyle* otherStyle = nullptr) const = 0; 188 virtual LayoutUnit marginAfter(const RenderStyle* otherStyle = nullptr) const = 0; 189 virtual LayoutUnit marginStart(const RenderStyle* otherStyle = nullptr) const = 0; 190 virtual LayoutUnit marginEnd(const RenderStyle* otherStyle = nullptr) const = 0; 191 191 LayoutUnit verticalMarginExtent() const { return marginTop() + marginBottom(); } 192 192 LayoutUnit horizontalMarginExtent() const { return marginLeft() + marginRight(); } … … 204 204 bool paintNinePieceImage(GraphicsContext*, const LayoutRect&, const RenderStyle&, const NinePieceImage&, CompositeOperator = CompositeSourceOver); 205 205 void paintBoxShadow(const PaintInfo&, const LayoutRect&, const RenderStyle&, ShadowStyle, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true); 206 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox* = 0, const LayoutSize& = LayoutSize(), CompositeOperator = CompositeSourceOver, RenderElement* backgroundObject = 0, BaseBackgroundColorUsage = BaseBackgroundColorUse);207 208 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, InlineFlowBox* = 0) const;206 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox* = nullptr, const LayoutSize& = LayoutSize(), CompositeOperator = CompositeSourceOver, RenderElement* backgroundObject = nullptr, BaseBackgroundColorUsage = BaseBackgroundColorUse); 207 208 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, InlineFlowBox* = nullptr) const; 209 209 210 210 // Overridden by subclasses to determine line height and baseline position. … … 241 241 242 242 bool hasBoxDecorationStyle() const; 243 BackgroundImageGeometry calculateBackgroundImageGeometry(const RenderLayerModelObject* paintContainer, const FillLayer&, const LayoutRect& paintRect, RenderElement* = 0) const;243 BackgroundImageGeometry calculateBackgroundImageGeometry(const RenderLayerModelObject* paintContainer, const FillLayer&, const LayoutRect& paintRect, RenderElement* = nullptr) const; 244 244 bool borderObscuresBackgroundEdge(const FloatSize& contextScale) const; 245 245 bool borderObscuresBackground() const; … … 270 270 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child, bool fullRemoveInsert = false) 271 271 { 272 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert);272 moveChildTo(toBoxModelObject, child, nullptr, fullRemoveInsert); 273 273 } 274 274 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, bool fullRemoveInsert = false) 275 275 { 276 moveAllChildrenTo(toBoxModelObject, 0, fullRemoveInsert);276 moveAllChildrenTo(toBoxModelObject, nullptr, fullRemoveInsert); 277 277 } 278 278 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject* beforeChild, bool fullRemoveInsert = false) 279 279 { 280 moveChildrenTo(toBoxModelObject, firstChild(), 0, beforeChild, fullRemoveInsert);280 moveChildrenTo(toBoxModelObject, firstChild(), nullptr, beforeChild, fullRemoveInsert); 281 281 } 282 282 // Move all of the kids from |startChild| up to but excluding |endChild|. 0 can be passed as the |endChild| to denote … … 284 284 void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject* startChild, RenderObject* endChild, bool fullRemoveInsert = false) 285 285 { 286 moveChildrenTo(toBoxModelObject, startChild, endChild, 0, fullRemoveInsert);286 moveChildrenTo(toBoxModelObject, startChild, endChild, nullptr, fullRemoveInsert); 287 287 } 288 288 void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject* startChild, RenderObject* endChild, RenderObject* beforeChild, bool fullRemoveInsert = false); … … 308 308 void paintOneBorderSide(GraphicsContext*, const RenderStyle&, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 309 309 const LayoutRect& sideRect, BoxSide, BoxSide adjacentSide1, BoxSide adjacentSide2, const BorderEdge[], 310 const Path*, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias, const Color* overrideColor = 0);310 const Path*, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias, const Color* overrideColor = nullptr); 311 311 void paintTranslucentBorderSides(GraphicsContext*, const RenderStyle&, const RoundedRect& outerBorder, const RoundedRect& innerBorder, const IntPoint& innerBorderAdjustment, 312 312 const BorderEdge[], BorderEdgeFlags, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias = false); 313 313 void paintBorderSides(GraphicsContext*, const RenderStyle&, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 314 314 const IntPoint& innerBorderAdjustment, const BorderEdge[], BorderEdgeFlags, BackgroundBleedAvoidance, 315 bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias = false, const Color* overrideColor = 0);315 bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias = false, const Color* overrideColor = nullptr); 316 316 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, const BorderEdge[], 317 317 float thickness, float drawThickness, BoxSide, const RenderStyle&, -
trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
r181398 r182127 60 60 void reset() 61 61 { 62 m_currentChild = 0;62 m_currentChild = nullptr; 63 63 m_ordinalIteration = -1; 64 64 } … … 80 80 else { 81 81 if (m_ordinalIteration > m_ordinalValues.size()) 82 return 0;82 return nullptr; 83 83 84 84 // Only copy+sort the values once per layout even if the iterator is reset. -
trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.h
r177259 r182127 50 50 virtual bool canCollapseAnonymousBlockChild() const override { return false; } 51 51 52 void placeChild(RenderBox* child, const LayoutPoint& location, LayoutSize* childLayoutDelta = 0);52 void placeChild(RenderBox* child, const LayoutPoint& location, LayoutSize* childLayoutDelta = nullptr); 53 53 54 54 private: -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r181691 r182127 180 180 if (isWritingModeRoot() || m_numberOfInFlowChildrenOnFirstLine <= 0) 181 181 return Optional<int>(); 182 RenderBox* baselineChild = 0;182 RenderBox* baselineChild = nullptr; 183 183 int childNumber = 0; 184 184 for (RenderBox* child = m_orderIterator.first(); child; child = m_orderIterator.next()) { … … 466 466 return child.computeContentLogicalHeight(size); 467 467 // FIXME: Figure out how this should work for regions and pass in the appropriate values. 468 RenderRegion* region = 0;468 RenderRegion* region = nullptr; 469 469 return child.computeLogicalWidthInRegionUsing(sizeType, size, contentLogicalWidth(), this, region) - child.borderAndPaddingLogicalWidth(); 470 470 } -
trunk/Source/WebCore/rendering/RenderLineBoxList.cpp
r179750 r182127 77 77 line = nextLine; 78 78 } 79 m_firstLineBox = m_lastLineBox = 0;79 m_firstLineBox = m_lastLineBox = nullptr; 80 80 } 81 81 … … 88 88 m_firstLineBox = 0; 89 89 if (box->prevLineBox()) 90 box->prevLineBox()->setNextLineBox( 0);91 box->setPreviousLineBox( 0);90 box->prevLineBox()->setNextLineBox(nullptr); 91 box->setPreviousLineBox(nullptr); 92 92 for (InlineFlowBox* curr = box; curr; curr = curr->nextLineBox()) 93 93 curr->setExtracted(); … … 139 139 delete curr; 140 140 } 141 m_firstLineBox = 0;142 m_lastLineBox = 0;141 m_firstLineBox = nullptr; 142 m_lastLineBox = nullptr; 143 143 } 144 144 } … … 403 403 { 404 404 #ifdef CHECK_CONSISTENCY 405 const InlineFlowBox* prev = 0;406 for (const InlineFlowBox* child = m_firstLineBox; child != 0; child = child->nextLineBox()) {405 const InlineFlowBox* prev = nullptr; 406 for (const InlineFlowBox* child = m_firstLineBox; child != nullptr; child = child->nextLineBox()) { 407 407 ASSERT(child->prevLineBox() == prev); 408 408 prev = child; -
trunk/Source/WebCore/rendering/RenderLineBoxList.h
r174714 r182127 41 41 public: 42 42 RenderLineBoxList() 43 : m_firstLineBox( 0)44 , m_lastLineBox( 0)43 : m_firstLineBox(nullptr) 44 , m_lastLineBox(nullptr) 45 45 { 46 46 } -
trunk/Source/WebCore/rendering/RenderListBox.cpp
r180474 r182127 780 780 { 781 781 // FIXME: Return a RenderLayer that's scrollable. 782 return 0;782 return nullptr; 783 783 } 784 784 … … 825 825 void RenderListBox::setHasVerticalScrollbar(bool hasScrollbar) 826 826 { 827 if (hasScrollbar == (m_vBar != 0))827 if (hasScrollbar == (m_vBar != nullptr)) 828 828 return; 829 829 -
trunk/Source/WebCore/rendering/RenderListBox.h
r177259 r182127 81 81 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& locationInContainer, const LayoutPoint& accumulatedOffset) override; 82 82 83 virtual bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float multiplier = 1, Element** stopElement = 0) override;83 virtual bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float multiplier = 1, Element** stopElement = nullptr) override; 84 84 85 85 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override; … … 90 90 virtual void layout() override; 91 91 92 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer = 0) override;92 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer = nullptr) override; 93 93 94 94 virtual bool canBeProgramaticallyScrolled() const override { return true; }
Note: See TracChangeset
for help on using the changeset viewer.