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

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

Issue 1938343002: Generate a series of nested switch statements to parse CSSPrimitiveValue units. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head Created 4 years, 7 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/CSSPrimitiveValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
index 1299097d8f68db1d3656717b004185e14f5262b3..936fe356a33502b15aaa990033283b007645c4f8 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
@@ -158,10 +158,6 @@ public:
static UnitCategory unitTypeToUnitCategory(UnitType);
static float clampToCSSLengthRange(double);
- static void initUnitTable();
-
- static UnitType fromName(const String& unit);
-
static bool isAngle(UnitType unit)
{
return unit == UnitType::Degrees

Powered by Google App Engine
This is Rietveld 408576698