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

Unified Diff: Source/core/css/MediaValues.h

Issue 633643003: Enable float source size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed merge issue 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 | « no previous file | Source/core/css/parser/SizesAttributeParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaValues.h
diff --git a/Source/core/css/MediaValues.h b/Source/core/css/MediaValues.h
index d306ac43029692f7d6a8f4cab5a4abb09f1f26d8..2a0b282f2993aaca109fd33d99fbe3e37741a971 100644
--- a/Source/core/css/MediaValues.h
+++ b/Source/core/css/MediaValues.h
@@ -37,7 +37,7 @@ public:
double tempResult;
if (!computeLengthImpl(value, type, defaultFontSize, viewportWidth, viewportHeight, tempResult))
return false;
- result = roundForImpreciseConversion<T>(tempResult);
+ result = clampTo<T>(tempResult);
return true;
}
virtual bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) const = 0;
« no previous file with comments | « no previous file | Source/core/css/parser/SizesAttributeParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698