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

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

Issue 1316153003: Removed m_isQuirkValue and used CSSPrimitiveValue::QuirkyEms instead (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: g clt 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
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.h ('k') | Source/core/css/CSSValue.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 2a6bdb93b1b00d9d5c05b6d530caf8313bb2217e..329304c421c9f9c23458fc34ac720fc1668fd85e 100644
--- a/Source/core/css/CSSPrimitiveValue.cpp
+++ b/Source/core/css/CSSPrimitiveValue.cpp
@@ -490,6 +490,7 @@ double CSSPrimitiveValue::computeLengthDouble(const CSSToLengthConversionData& c
switch (type()) {
case UnitType::Ems:
+ case UnitType::QuirkyEms:
factor = conversionData.emFontSize();
break;
case UnitType::Exs:
@@ -678,6 +679,7 @@ bool CSSPrimitiveValue::unitTypeToLengthUnitType(UnitType unitType, LengthUnitTy
lengthType = UnitTypePixels;
return true;
case CSSPrimitiveValue::UnitType::Ems:
+ case CSSPrimitiveValue::UnitType::QuirkyEms:
lengthType = UnitTypeFontSize;
return true;
case CSSPrimitiveValue::UnitType::Exs:
@@ -787,6 +789,7 @@ const char* CSSPrimitiveValue::unitTypeToString(UnitType type)
case UnitType::Percentage:
return "%";
case UnitType::Ems:
+ case UnitType::QuirkyEms:
return "em";
case UnitType::Exs:
return "ex";
@@ -849,7 +852,6 @@ const char* CSSPrimitiveValue::unitTypeToString(UnitType type)
case UnitType::Shape:
case UnitType::CalcPercentageWithNumber:
case UnitType::CalcPercentageWithLength:
- case UnitType::QuirkyEms:
break;
};
ASSERT_NOT_REACHED();
@@ -874,6 +876,7 @@ String CSSPrimitiveValue::customCSSText() const
case UnitType::Number:
case UnitType::Percentage:
case UnitType::Ems:
+ case UnitType::QuirkyEms:
case UnitType::Exs:
case UnitType::Rems:
case UnitType::Chs:
@@ -929,7 +932,6 @@ String CSSPrimitiveValue::customCSSText() const
break;
case UnitType::CalcPercentageWithNumber:
case UnitType::CalcPercentageWithLength:
- case UnitType::QuirkyEms:
ASSERT_NOT_REACHED();
break;
}
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.h ('k') | Source/core/css/CSSValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698