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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 1915343003: Add CSS hyphens property behind the test flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split histograms.xml to a separate CL Created 4 years, 8 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: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
index 93fdf19c8cb2382f688a400dfb0df1f29e7e1c29..1bf591115ef035ab0d8e51516e871c78d7360c7b 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1399,6 +1399,41 @@ template<> inline EFloat CSSPrimitiveValue::convertTo() const
return NoFloat;
}
+template<> inline CSSPrimitiveValue::CSSPrimitiveValue(Hyphens e)
+ : CSSValue(PrimitiveClass)
+{
+ init(UnitType::ValueID);
+ switch (e) {
+ case HyphensAuto:
+ m_value.valueID = CSSValueAuto;
+ break;
+ case HyphensManual:
+ m_value.valueID = CSSValueManual;
+ break;
+ case HyphensNone:
+ m_value.valueID = CSSValueNone;
+ break;
+ }
+}
+
+template<> inline Hyphens CSSPrimitiveValue::convertTo() const
+{
+ DCHECK(isValueID());
+ switch (m_value.valueID) {
+ case CSSValueAuto:
+ return HyphensAuto;
+ case CSSValueManual:
+ return HyphensManual;
+ case CSSValueNone:
+ return HyphensNone;
+ default:
+ break;
+ }
+
+ NOTREACHED();
+ return HyphensManual;
+}
+
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(LineBreak e)
: CSSValue(PrimitiveClass)
{

Powered by Google App Engine
This is Rietveld 408576698