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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/MediaQueryParser.cpp

Issue 2041363002: Move isColorKeyword out of CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Alternative using StyleColor Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/css/parser/MediaQueryParser.h" 5 #include "core/css/parser/MediaQueryParser.h"
6 6
7 #include "core/MediaTypeNames.h" 7 #include "core/MediaTypeNames.h"
8 #include "core/css/parser/CSSPropertyParser.h"
9 #include "core/css/parser/CSSTokenizer.h" 8 #include "core/css/parser/CSSTokenizer.h"
10 #include "wtf/Vector.h" 9 #include "wtf/Vector.h"
11 10
12 namespace blink { 11 namespace blink {
13 12
14 MediaQuerySet* MediaQueryParser::parseMediaQuerySet(const String& queryString) 13 MediaQuerySet* MediaQueryParser::parseMediaQuerySet(const String& queryString)
15 { 14 {
16 return parseMediaQuerySet(CSSTokenizer::Scope(queryString).tokenRange()); 15 return parseMediaQuerySet(CSSTokenizer::Scope(queryString).tokenRange());
17 } 16 }
18 17
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 return false; 274 return false;
276 } 275 }
277 276
278 void MediaQueryData::setMediaType(const String& mediaType) 277 void MediaQueryData::setMediaType(const String& mediaType)
279 { 278 {
280 m_mediaType = mediaType; 279 m_mediaType = mediaType;
281 m_mediaTypeSet = true; 280 m_mediaTypeSet = true;
282 } 281 }
283 282
284 } // namespace blink 283 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698