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

Unified Diff: Source/core/css/parser/MediaQueryParser.h

Issue 252743004: A thread safe CSS calc parser for sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert last patch, will include it in a separate commit Created 6 years, 8 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
Index: Source/core/css/parser/MediaQueryParser.h
diff --git a/Source/core/css/parser/MediaQueryParser.h b/Source/core/css/parser/MediaQueryParser.h
index 6e2ea780e7ca1503fe2537181f95e382648d2ab8..84609982f3c5e211a41d100f7c108687210b2d39 100644
--- a/Source/core/css/parser/MediaQueryParser.h
+++ b/Source/core/css/parser/MediaQueryParser.h
@@ -46,14 +46,11 @@ public:
inline void setMediaFeature(const String& str) { m_mediaFeature = str; }
};
-typedef Vector<MediaQueryToken> TokenList;
-typedef TokenList::iterator TokenIterator;
-
class MediaQueryParser {
STACK_ALLOCATED();
public:
static PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaQuerySet(const String&);
- static PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaCondition(TokenIterator, TokenIterator endToken);
+ static PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaCondition(MediaQueryTokenIterator, MediaQueryTokenIterator endToken);
private:
enum ParserType {
@@ -64,7 +61,7 @@ private:
MediaQueryParser(ParserType);
virtual ~MediaQueryParser();
- PassRefPtrWillBeRawPtr<MediaQuerySet> parseImpl(TokenIterator, TokenIterator endToken);
+ PassRefPtrWillBeRawPtr<MediaQuerySet> parseImpl(MediaQueryTokenIterator, MediaQueryTokenIterator endToken);
void processToken(const MediaQueryToken&);

Powered by Google App Engine
This is Rietveld 408576698