OLD | NEW |
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 "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 | 11 |
12 namespace WebCore { | 12 namespace WebCore { |
13 | 13 |
14 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQueryParser::parseMediaQuerySet(const
String& queryString) | 14 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQueryParser::parseMediaQuerySet(const
String& queryString) |
15 { | 15 { |
16 // FIXME: Replace the MediaQueryTokenizer with a generic CSSTokenizer, once
there is one, | 16 // 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. | 17 // or better yet, replace the MediaQueryParser with a generic thread-safe CS
S parser. |
18 Vector<MediaQueryToken> tokens; | 18 Vector<MediaQueryToken> tokens; |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 m_valueList.addValue(value); | 254 m_valueList.addValue(value); |
255 } | 255 } |
256 | 256 |
257 void MediaQueryData::setMediaType(const String& mediaType) | 257 void MediaQueryData::setMediaType(const String& mediaType) |
258 { | 258 { |
259 m_mediaType = mediaType; | 259 m_mediaType = mediaType; |
260 m_mediaTypeSet = true; | 260 m_mediaTypeSet = true; |
261 } | 261 } |
262 | 262 |
263 } // namespace WebCore | 263 } // namespace WebCore |
OLD | NEW |