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

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

Issue 171383002: A thread-safe Media Query Parser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moar rebase Created 6 years, 9 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: Source/core/css/CSSPrimitiveValue.h
diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h
index c16a2ab2a71447b20f04d8b6b4be61674ad989ae..ad0005371b1540b5440494561a2d54279b2c0585 100644
--- a/Source/core/css/CSSPrimitiveValue.h
+++ b/Source/core/css/CSSPrimitiveValue.h
@@ -149,6 +149,9 @@ public:
};
static UnitCategory unitCategory(CSSPrimitiveValue::UnitTypes);
+ typedef HashMap<String, CSSPrimitiveValue::UnitTypes> UnitTable;
+ static UnitTable& getUnitTable();
+
bool isAngle() const
{
return m_primitiveUnitType == CSS_DEG

Powered by Google App Engine
This is Rietveld 408576698