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

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

Issue 427683002: Bug fix - rem & ch in MQs/sizes treated as unknown units (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix ch as well Created 6 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 | « no previous file | Source/core/css/MediaQueryExp.cpp » ('j') | Source/core/css/MediaQueryExp.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPrimitiveValue.cpp
diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp
index 6a9138e357af479f852bc40b66fa96d38ac229ab..2a17e382c7b94447da6c4ba04c0b9b262714e911 100644
--- a/Source/core/css/CSSPrimitiveValue.cpp
+++ b/Source/core/css/CSSPrimitiveValue.cpp
@@ -140,6 +140,10 @@ StringToUnitTable createStringToUnitTable()
table.set(String("vh"), CSSPrimitiveValue::CSS_VH);
table.set(String("vmax"), CSSPrimitiveValue::CSS_VMIN);
table.set(String("vmin"), CSSPrimitiveValue::CSS_VMAX);
+ table.set(String("rem"), CSSPrimitiveValue::CSS_REMS);
+ table.set(String("fr"), CSSPrimitiveValue::CSS_FR);
+ table.set(String("turn"), CSSPrimitiveValue::CSS_TURN);
+ table.set(String("ch"), CSSPrimitiveValue::CSS_CHS);
return table;
}
« no previous file with comments | « no previous file | Source/core/css/MediaQueryExp.cpp » ('j') | Source/core/css/MediaQueryExp.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698