Title: [104222] branches/subpixellayout/Source/WebCore
- Revision
- 104222
- Author
- [email protected]
- Date
- 2012-01-05 14:35:49 -0800 (Thu, 05 Jan 2012)
Log Message
Remove unused pixelSnapped methods from RenderBox.
Modified Paths
Diff
Modified: branches/subpixellayout/Source/WebCore/dom/Element.cpp (104221 => 104222)
--- branches/subpixellayout/Source/WebCore/dom/Element.cpp 2012-01-05 22:33:51 UTC (rev 104221)
+++ branches/subpixellayout/Source/WebCore/dom/Element.cpp 2012-01-05 22:35:49 UTC (rev 104222)
@@ -429,7 +429,7 @@
{
document()->updateLayoutIgnorePendingStylesheets();
if (RenderBox* rend = renderBox())
- return roundf(adjustForAbsoluteZoom(rend->scrollLeft(), rend));
+ return adjustForAbsoluteZoom(rend->scrollLeft(), rend);
return 0;
}
Modified: branches/subpixellayout/Source/WebCore/rendering/RenderBox.h (104221 => 104222)
--- branches/subpixellayout/Source/WebCore/rendering/RenderBox.h 2012-01-05 22:33:51 UTC (rev 104221)
+++ branches/subpixellayout/Source/WebCore/rendering/RenderBox.h 2012-01-05 22:35:49 UTC (rev 104222)
@@ -190,14 +190,6 @@
// More IE extensions. clientWidth and clientHeight represent the interior of an object
// excluding border and scrollbar. clientLeft/Top are just the borderLeftWidth and borderTopWidth.
- // FIXME: The pixelSnapped versions are returned to the DOM. Internal callers should probably be
- // moved off of these methods.
- int pixelSnappedClientLeft() const { return clientLeft().round(); }
- int pixelSnappedClientTop() const { return clientTop().round(); }
- int pixelSnappedClientWidth() const;
- int pixelSnappedClientHeight() const;
- //IntRect pixelSnappedClientRect() const { return IntRect(pixelSnappedClientLeft(), pixelSnappedClientTop(), pixelSnappedClientWidth(), pixelSnappedClientHeight()); }
-
LayoutUnit clientLeft() const { return borderLeft(); }
LayoutUnit clientTop() const { return borderTop(); }
LayoutUnit clientWidth() const;
@@ -207,6 +199,9 @@
LayoutUnit clientLogicalBottom() const { return borderBefore() + clientLogicalHeight(); }
LayoutRect clientBoxRect() const { return LayoutRect(clientLeft(), clientTop(), clientWidth(), clientHeight()); }
+ int pixelSnappedClientWidth() const;
+ int pixelSnappedClientHeight() const;
+
// scrollWidth/scrollHeight will be the same as clientWidth/clientHeight unless the
// object has overflow:hidden/scroll/auto specified and also has overflow.
// scrollLeft/Top return the current scroll position. These methods are virtual so that objects like
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes