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

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

Issue 1169803004: Make __qems a CSSPrimitiveValue unit type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments Created 5 years, 6 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/css/CSSPrimitiveValue.h ('k') | Source/core/css/parser/CSSParserValues.h » ('j') | no next file with comments »
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 048fe6d3becb34af491cb7f2ecf579b56cf3e90b..606a36e4e8f21f6cee51163d50559a86d7f89fce 100644
--- a/Source/core/css/CSSPrimitiveValue.cpp
+++ b/Source/core/css/CSSPrimitiveValue.cpp
@@ -82,6 +82,7 @@ StringToUnitTable createStringToUnitTable()
table.set(String("fr"), CSSPrimitiveValue::CSS_FR);
table.set(String("turn"), CSSPrimitiveValue::CSS_TURN);
table.set(String("ch"), CSSPrimitiveValue::CSS_CHS);
+ table.set(String("__qem"), CSSPrimitiveValue::CSS_QEM);
return table;
}
@@ -439,6 +440,7 @@ void CSSPrimitiveValue::cleanup()
case CSS_NUMBER:
case CSS_PERCENTAGE:
case CSS_EMS:
+ case CSS_QEM:
case CSS_EXS:
case CSS_REMS:
case CSS_CHS:
@@ -924,6 +926,7 @@ const char* CSSPrimitiveValue::unitTypeToString(UnitType type)
case CSS_IDENT:
case CSS_CALC_PERCENTAGE_WITH_NUMBER:
case CSS_CALC_PERCENTAGE_WITH_LENGTH:
+ case CSS_QEM:
break;
};
ASSERT_NOT_REACHED();
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.h ('k') | Source/core/css/parser/CSSParserValues.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698