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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

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/core/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 10aa6df78fc240a6ffca850be4fb234be7119956..865e9ccccea8565e0cb27681a82768351e032609 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -23,6 +23,7 @@
#include "core/style/ComputedStyle.h"
+#include "base/numerics/saturated_arithmetic.h"
#include "core/animation/css/CSSAnimationData.h"
#include "core/animation/css/CSSTransitionData.h"
#include "core/css/CSSPaintValue.h"
@@ -54,7 +55,6 @@
#include "platform/transforms/TranslateTransformOperation.h"
#include "wtf/MathExtras.h"
#include "wtf/PtrUtil.h"
-#include "wtf/SaturatedArithmetic.h"
#include "wtf/SizeAssertions.h"
#include <algorithm>
#include <memory>
@@ -2243,7 +2243,7 @@ int ComputedStyle::outlineOutsetExtent() const {
return GraphicsContext::focusRingOutsetExtent(
outlineOffset(), std::ceil(getOutlineStrokeWidthForFocusRing()));
}
- return std::max(0, saturatedAddition(outlineWidth(), outlineOffset()));
+ return std::max(0, base::SaturatedAddition(outlineWidth(), outlineOffset()));
}
float ComputedStyle::getOutlineStrokeWidthForFocusRing() const {

Powered by Google App Engine
This is Rietveld 408576698