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

Unified Diff: Source/core/css/parser/MediaQueryToken.cpp

Issue 209443003: Refactor unitTable access (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/MediaQueryToken.cpp
diff --git a/Source/core/css/parser/MediaQueryToken.cpp b/Source/core/css/parser/MediaQueryToken.cpp
index 4930829388eed408e4afdb20f96381d76523ff2b..be1a041485d89b18966ca88a151c3ba669437e16 100644
--- a/Source/core/css/parser/MediaQueryToken.cpp
+++ b/Source/core/css/parser/MediaQueryToken.cpp
@@ -49,7 +49,7 @@ void MediaQueryToken::convertToDimensionWithUnit(String unit)
{
ASSERT(m_type == NumberToken);
m_type = DimensionToken;
- m_unit = CSSPrimitiveValue::getUnitTable().get(unit.lower());
+ m_unit = CSSPrimitiveValue::fromName(unit);
}
void MediaQueryToken::convertToPercentage()
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698