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

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

Issue 437213004: wtf/Vector.h included more than necessary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 | « Source/core/css/parser/MediaQueryParser.h ('k') | Source/core/html/imports/HTMLImport.h » ('j') | 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 "config.h" 5 #include "config.h"
6 #include "core/css/parser/MediaQueryParser.h" 6 #include "core/css/parser/MediaQueryParser.h"
7 7
8 #include "core/MediaTypeNames.h" 8 #include "core/MediaTypeNames.h"
9 #include "core/css/parser/CSSPropertyParser.h" 9 #include "core/css/parser/CSSPropertyParser.h"
10 #include "core/css/parser/MediaQueryTokenizer.h" 10 #include "core/css/parser/MediaQueryTokenizer.h"
11 #include "wtf/Vector.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQueryParser::parseMediaQuerySet(const String& queryString) 15 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQueryParser::parseMediaQuerySet(const String& queryString)
15 { 16 {
16 // FIXME: Replace the MediaQueryTokenizer with a generic CSSTokenizer, once there is one, 17 // FIXME: Replace the MediaQueryTokenizer with a generic CSSTokenizer, once there is one,
17 // or better yet, replace the MediaQueryParser with a generic thread-safe CS S parser. 18 // or better yet, replace the MediaQueryParser with a generic thread-safe CS S parser.
18 Vector<MediaQueryToken> tokens; 19 Vector<MediaQueryToken> tokens;
19 MediaQueryTokenizer::tokenize(queryString, tokens); 20 MediaQueryTokenizer::tokenize(queryString, tokens);
20 return MediaQueryParser(MediaQuerySetParser).parseImpl(tokens.begin(), token s.end()); 21 return MediaQueryParser(MediaQuerySetParser).parseImpl(tokens.begin(), token s.end());
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 m_valueList.addValue(value); 257 m_valueList.addValue(value);
257 } 258 }
258 259
259 void MediaQueryData::setMediaType(const String& mediaType) 260 void MediaQueryData::setMediaType(const String& mediaType)
260 { 261 {
261 m_mediaType = mediaType; 262 m_mediaType = mediaType;
262 m_mediaTypeSet = true; 263 m_mediaTypeSet = true;
263 } 264 }
264 265
265 } // namespace blink 266 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/parser/MediaQueryParser.h ('k') | Source/core/html/imports/HTMLImport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698