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

Unified Diff: third_party/WebKit/Source/platform/geometry/LayoutRect.cpp

Issue 2550083002: Inline LayoutRect::enclosingIntRect (Closed)
Patch Set: Created 4 years 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 | « third_party/WebKit/Source/platform/geometry/LayoutRect.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/geometry/LayoutRect.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/LayoutRect.cpp b/third_party/WebKit/Source/platform/geometry/LayoutRect.cpp
index ba9589cdfd7eaa99fd3d6302070de917aa725d63..d3421c4ce84f3ca841711837049bc0dbc4c663fd 100644
--- a/third_party/WebKit/Source/platform/geometry/LayoutRect.cpp
+++ b/third_party/WebKit/Source/platform/geometry/LayoutRect.cpp
@@ -152,13 +152,6 @@ LayoutRect unionRectEvenIfEmpty(const Vector<LayoutRect>& rects) {
return result;
}
-IntRect enclosingIntRect(const LayoutRect& rect) {
- IntPoint location = flooredIntPoint(rect.minXMinYCorner());
- IntPoint maxPoint = ceiledIntPoint(rect.maxXMaxYCorner());
-
- return IntRect(location, maxPoint - location);
-}
-
LayoutRect enclosingLayoutRect(const FloatRect& rect) {
LayoutPoint location = flooredLayoutPoint(rect.minXMinYCorner());
LayoutPoint maxPoint = ceiledLayoutPoint(rect.maxXMaxYCorner());
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/LayoutRect.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698