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

Unified Diff: Source/core/platform/LayoutUnit.h

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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/core/platform/Language.cpp ('k') | Source/core/platform/LengthBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/LayoutUnit.h
diff --git a/Source/core/platform/LayoutUnit.h b/Source/core/platform/LayoutUnit.h
index 97a3431c01cde36cb4f3ffacb59a7174b9271a04..d2f3369521c9ca69b6dc9d078f1fd3df181e6124 100644
--- a/Source/core/platform/LayoutUnit.h
+++ b/Source/core/platform/LayoutUnit.h
@@ -162,7 +162,7 @@ public:
}
LayoutUnit fraction() const
- {
+ {
// Add the fraction to the size (as opposed to the full location) to avoid overflows.
// Compute fraction using the mod operator to preserve the sign of the value as it may affect rounding.
LayoutUnit fraction;
@@ -204,7 +204,7 @@ public:
m.m_value = std::numeric_limits<int>::min() + kFixedPointDenominator / 2;
return m;
}
-
+
static LayoutUnit clamp(double value)
{
return clampTo<LayoutUnit>(value, LayoutUnit::min(), LayoutUnit::max());
@@ -223,7 +223,7 @@ private:
{
return ::fabs(value) <= std::numeric_limits<int>::max() / kFixedPointDenominator;
}
-
+
inline void setValue(int value)
{
if (value > intMaxForLayoutUnit)
@@ -501,7 +501,7 @@ inline LayoutUnit operator/(const LayoutUnit& a, const LayoutUnit& b)
long long rawVal = static_cast<long long>(kFixedPointDenominator) * a.rawValue() / b.rawValue();
returnVal.setRawValue(clampTo<int>(rawVal));
return returnVal;
-}
+}
inline float operator/(const LayoutUnit& a, float b)
{
@@ -763,7 +763,7 @@ inline float& operator/=(float& a, const LayoutUnit& b)
return a;
}
-inline int snapSizeToPixel(LayoutUnit size, LayoutUnit location)
+inline int snapSizeToPixel(LayoutUnit size, LayoutUnit location)
{
LayoutUnit fraction = location.fraction();
return (fraction + size).round() - fraction.round();
« no previous file with comments | « Source/core/platform/Language.cpp ('k') | Source/core/platform/LengthBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698