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

Unified Diff: Source/platform/geometry/IntRect.cpp

Issue 641643004: Reapply the non-MathExtras parts of (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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/platform/geometry/FloatSize.h ('k') | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/IntRect.cpp
diff --git a/Source/platform/geometry/IntRect.cpp b/Source/platform/geometry/IntRect.cpp
index 5cd0abbfc4d658ea51ae9359d0fa98a80002f38d..9249e5eb1b8bdd1536c3c30f72d60d340bb62f52 100644
--- a/Source/platform/geometry/IntRect.cpp
+++ b/Source/platform/geometry/IntRect.cpp
@@ -35,8 +35,8 @@
namespace blink {
IntRect::IntRect(const FloatRect& r)
- : m_location(clampToInteger(r.x()), clampToInteger(r.y()))
- , m_size(clampToInteger(r.width()), clampToInteger(r.height()))
+ : m_location(clampTo<int>(r.x()), clampTo<int>(r.y()))
+ , m_size(clampTo<int>(r.width()), clampTo<int>(r.height()))
{
}
« no previous file with comments | « Source/platform/geometry/FloatSize.h ('k') | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698