Changeset 112756 in webkit
- Timestamp:
- Mar 30, 2012 5:52:52 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r112755 r112756 1 2012-03-30 Emil A Eklund <eae@chromium.org> 2 3 Fix return type for virtual borderBoundingBox method 4 https://bugs.webkit.org/show_bug.cgi?id=82561 5 6 Reviewed by Eric Seidel. 7 8 No new tests, no change in functionality. 9 10 * editing/DeleteButtonController.cpp: 11 (WebCore::isDeletableElement): 12 * rendering/RenderBox.h: 13 (WebCore::RenderBox::borderBoxRect): 14 Rename pixelSnappedBorderBoxRect to borderBoxRect and remove LayoutRect 15 version of same as we always want to use the pixel snapped version to 16 ensure proper rounding and alignment to device pixels. 17 (The way this rect is pixel snapped, using the m_frameRect location, 18 makes it hard for calling code to take the subpixel rect and correctly 19 snap it). 20 21 (WebCore::RenderBox::borderBoundingBox): 22 * rendering/RenderBoxModelObject.h: 23 Change pure virtual definition of borderBoundingBox to return an IntRect 24 to match implementation in RenderBox. 25 26 (RenderBoxModelObject): 27 * rendering/RenderInline.h: 28 (WebCore::RenderInline::borderBoundingBox): 29 Change overloaded method to IntRect to match RenderBox implementation. 30 1 31 2012-03-30 Bear Travis <betravis@adobe.com> 2 32 -
trunk/Source/WebCore/editing/DeleteButtonController.cpp
r107899 r112756 93 93 94 94 RenderBox* box = toRenderBox(renderer); 95 LayoutRect borderBoundingBox = box->borderBoundingBox();95 IntRect borderBoundingBox = box->borderBoundingBox(); 96 96 if (borderBoundingBox.width() < minimumWidth || borderBoundingBox.height() < minimumHeight) 97 97 return false; -
trunk/Source/WebCore/rendering/RenderBox.h
r111279 r112756 133 133 void setFrameRect(const LayoutRect& rect) { m_frameRect = rect; } 134 134 135 // FIXME: We shouldn't be returning this as a LayoutRect, since it loses its position and won't properly pixel snap. 136 LayoutRect borderBoxRect() const { return LayoutRect(LayoutPoint(), size()); } 137 IntRect pixelSnappedBorderBoxRect() const { return IntRect(IntPoint(), IntSize(m_frameRect.pixelSnappedWidth(), m_frameRect.pixelSnappedHeight())); } 138 virtual IntRect borderBoundingBox() const { return pixelSnappedBorderBoxRect(); } 135 IntRect borderBoxRect() const { return IntRect(IntPoint(), IntSize(m_frameRect.pixelSnappedWidth(), m_frameRect.pixelSnappedHeight())); } 136 virtual IntRect borderBoundingBox() const { return borderBoxRect(); } 139 137 140 138 // The content area of the box (excludes padding and border). -
trunk/Source/WebCore/rendering/RenderBoxModelObject.h
r110769 r112756 78 78 79 79 // This will work on inlines to return the bounding box of all of the lines' border boxes. 80 virtual LayoutRect borderBoundingBox() const = 0;80 virtual IntRect borderBoundingBox() const = 0; 81 81 82 82 // Virtual since table cells override -
trunk/Source/WebCore/rendering/RenderInline.h
r112237 r112756 135 135 virtual VisiblePosition positionForPoint(const LayoutPoint&); 136 136 137 virtual LayoutRect borderBoundingBox() const137 virtual IntRect borderBoundingBox() const 138 138 { 139 LayoutRect boundingBox = linesBoundingBox();140 return LayoutRect(0, 0, boundingBox.width(), boundingBox.height());139 IntRect boundingBox = linesBoundingBox(); 140 return IntRect(0, 0, boundingBox.width(), boundingBox.height()); 141 141 } 142 142
Note: See TracChangeset
for help on using the changeset viewer.