Title: [99792] branches/subpixellayout/Source/WebCore/rendering
- Revision
- 99792
- Author
- [email protected]
- Date
- 2011-11-09 17:33:32 -0800 (Wed, 09 Nov 2011)
Log Message
Remove unnecessary type conversion for unscaledDocumentRect
Modified Paths
Diff
Modified: branches/subpixellayout/Source/WebCore/rendering/RenderView.cpp (99791 => 99792)
--- branches/subpixellayout/Source/WebCore/rendering/RenderView.cpp 2011-11-10 01:21:36 UTC (rev 99791)
+++ branches/subpixellayout/Source/WebCore/rendering/RenderView.cpp 2011-11-10 01:33:32 UTC (rev 99792)
@@ -687,9 +687,9 @@
}
-LayoutRect RenderView::unscaledDocumentRect() const
+IntRect RenderView::unscaledDocumentRect() const
{
- LayoutRect overflowRect(layoutOverflowRect());
+ IntRect overflowRect(layoutOverflowRect());
flipForWritingMode(overflowRect);
return overflowRect;
}
@@ -710,10 +710,10 @@
IntRect RenderView::documentRect() const
{
- LayoutRect overflowRect(unscaledDocumentRect());
+ IntRect overflowRect(unscaledDocumentRect());
if (hasTransform())
overflowRect = layer()->currentTransform().mapRect(overflowRect);
- return enclosingIntRect(overflowRect);
+ return overflowRect;
}
int RenderView::viewHeight() const
Modified: branches/subpixellayout/Source/WebCore/rendering/RenderView.h (99791 => 99792)
--- branches/subpixellayout/Source/WebCore/rendering/RenderView.h 2011-11-10 01:21:36 UTC (rev 99791)
+++ branches/subpixellayout/Source/WebCore/rendering/RenderView.h 2011-11-10 01:33:32 UTC (rev 99792)
@@ -166,7 +166,7 @@
bool usesCompositing() const;
#endif
- LayoutRect unscaledDocumentRect() const;
+ IntRect unscaledDocumentRect() const;
LayoutRect backgroundRect(RenderBox* backgroundRenderer) const;
IntRect documentRect() const;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes