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

Unified Diff: third_party/WebKit/Source/platform/geometry/IntPoint.h

Issue 2499783002: Move SaturatedArithmetic from Blink to base (Closed)
Patch Set: Created 4 years, 1 month 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
Index: third_party/WebKit/Source/platform/geometry/IntPoint.h
diff --git a/third_party/WebKit/Source/platform/geometry/IntPoint.h b/third_party/WebKit/Source/platform/geometry/IntPoint.h
index ebee74187e6129f52567479d9cb071971bee816f..de060f259b737d25ea359016db790a2116f20558 100644
--- a/third_party/WebKit/Source/platform/geometry/IntPoint.h
+++ b/third_party/WebKit/Source/platform/geometry/IntPoint.h
@@ -27,11 +27,11 @@
#ifndef IntPoint_h
#define IntPoint_h
+#include "base/numerics/saturated_arithmetic.h"
#include "platform/geometry/IntSize.h"
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
#include "wtf/MathExtras.h"
-#include "wtf/SaturatedArithmetic.h"
#include "wtf/VectorTraits.h"
#if OS(MACOSX)
@@ -68,8 +68,8 @@ class PLATFORM_EXPORT IntPoint {
m_y += dy;
}
void saturatedMove(int dx, int dy) {
- m_x = saturatedAddition(m_x, dx);
- m_y = saturatedAddition(m_y, dy);
+ m_x = base::SaturatedAddition(m_x, dx);
+ m_y = base::SaturatedAddition(m_y, dy);
}
void scale(float sx, float sy) {

Powered by Google App Engine
This is Rietveld 408576698