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

Unified Diff: third_party/WebKit/Source/platform/LayoutUnit.h

Issue 1456173004: wtf: Eliminate inliner abuse in saturatedSet function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « build/common.gypi ('k') | third_party/WebKit/Source/wtf/SaturatedArithmetic.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/LayoutUnit.h
diff --git a/third_party/WebKit/Source/platform/LayoutUnit.h b/third_party/WebKit/Source/platform/LayoutUnit.h
index 95e33a16dc1cd9bab3d9f2c16663103960e89de2..f21d4b6c19d6d5c48bcd7595737374b3f891f51d 100644
--- a/third_party/WebKit/Source/platform/LayoutUnit.h
+++ b/third_party/WebKit/Source/platform/LayoutUnit.h
@@ -218,12 +218,12 @@ private:
ALWAYS_INLINE void setValue(int value)
{
- m_value = saturatedSet(value, kLayoutUnitFractionalBits);
+ m_value = saturatedSet<kLayoutUnitFractionalBits>(value);
}
inline void setValue(unsigned value)
{
- m_value = saturatedSet(value, kLayoutUnitFractionalBits);
+ m_value = saturatedSet<kLayoutUnitFractionalBits>(value);
}
int m_value;
« no previous file with comments | « build/common.gypi ('k') | third_party/WebKit/Source/wtf/SaturatedArithmetic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698