Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1359)

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 958543004: Remove some unnecessary and precision-losing pixel snapping code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 3dd686cb068a9ce983e6add2fe71399aa2017f8a..a591d33a245580eee37ff4b442bf514f94b151c1 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -986,10 +986,10 @@ IntRect LayoutObject::absoluteBoundingBoxRectIgnoringTransforms() const
if (!n)
return IntRect();
- LayoutRect result = rects[0];
+ IntRect result = rects[0];
for (size_t i = 1; i < n; ++i)
result.unite(rects[i]);
- return pixelSnappedIntRect(result);
+ return result;
}
IntRect LayoutObject::absoluteFocusRingBoundingBoxRect() const
« no previous file with comments | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698