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

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

Issue 1316153003: Removed m_isQuirkValue and used CSSPrimitiveValue::QuirkyEms instead (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Small fix in unitTypeToString() Created 5 years, 3 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
Index: Source/core/css/MediaValues.cpp
diff --git a/Source/core/css/MediaValues.cpp b/Source/core/css/MediaValues.cpp
index 0ac4647554f6f83be657f871dce240dd335fb534..86239d8cddac1a9061fec1fbb7923675dcbfbd3d 100644
--- a/Source/core/css/MediaValues.cpp
+++ b/Source/core/css/MediaValues.cpp
@@ -163,6 +163,7 @@ bool MediaValues::computeLengthImpl(double value, CSSPrimitiveValue::UnitType ty
double factor = 0;
switch (type) {
case CSSPrimitiveValue::UnitType::Ems:
+ case CSSPrimitiveValue::UnitType::QuirkyEms:
Timothy Loh 2015/09/02 01:59:03 We won't get here with a quirky value
sashab 2015/09/02 03:54:49 Done.
case CSSPrimitiveValue::UnitType::Rems:
factor = defaultFontSize;
break;

Powered by Google App Engine
This is Rietveld 408576698