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

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

Issue 196653020: Revert 169289 "A thread-safe Media Query Parser" (Closed) Base URL: svn://svn.chromium.org/blink/
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 | « trunk/Source/core/css/parser/MediaQueryToken.h ('k') | trunk/Source/core/css/parser/MediaQueryTokenizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/css/parser/MediaQueryToken.cpp
===================================================================
--- trunk/Source/core/css/parser/MediaQueryToken.cpp (revision 169291)
+++ trunk/Source/core/css/parser/MediaQueryToken.cpp (working copy)
@@ -1,62 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "core/css/parser/MediaQueryToken.h"
-
-#include "wtf/HashMap.h"
-#include "wtf/text/StringHash.h"
-
-namespace WebCore {
-
-
-MediaQueryToken::MediaQueryToken(MediaQueryTokenType type)
- : m_type(type)
- , m_delimiter(0)
- , m_unit(CSSPrimitiveValue::CSS_UNKNOWN)
-{
-}
-
-// Just a helper used for Delimiter tokens.
-MediaQueryToken::MediaQueryToken(MediaQueryTokenType type, UChar c)
- : m_type(type)
- , m_delimiter(c)
- , m_unit(CSSPrimitiveValue::CSS_UNKNOWN)
-{
- ASSERT(m_type == DelimiterToken);
-}
-
-MediaQueryToken::MediaQueryToken(MediaQueryTokenType type, String value)
- : m_type(type)
- , m_value(value)
- , m_delimiter(0)
- , m_unit(CSSPrimitiveValue::CSS_UNKNOWN)
-{
-}
-
-MediaQueryToken::MediaQueryToken(MediaQueryTokenType type, double numericValue, NumericValueType numericValueType)
- : m_type(type)
- , m_delimiter(0)
- , m_numericValueType(numericValueType)
- , m_numericValue(numericValue)
- , m_unit(CSSPrimitiveValue::CSS_NUMBER)
-{
- ASSERT(type == NumberToken);
-}
-
-void MediaQueryToken::convertToDimensionWithUnit(String unit)
-{
- ASSERT(m_type == NumberToken);
- m_type = DimensionToken;
- m_unit = CSSPrimitiveValue::getUnitTable().get(unit.lower());
-}
-
-void MediaQueryToken::convertToPercentage()
-{
- ASSERT(m_type == NumberToken);
- m_type = PercentageToken;
- m_unit = CSSPrimitiveValue::CSS_PERCENTAGE;
-}
-
-} // namespace WebCore
« no previous file with comments | « trunk/Source/core/css/parser/MediaQueryToken.h ('k') | trunk/Source/core/css/parser/MediaQueryTokenizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698