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

Unified Diff: Source/core/css/MediaList.h

Issue 15679021: Parse media attributes and CSSOM media text as media_query_list. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review issues. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/MediaList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaList.h
diff --git a/Source/core/css/MediaList.h b/Source/core/css/MediaList.h
index 554cba48a5b57db773a590d4581e7d8cc85db208..96b5af62fb529133dee87f46ac336e1360fac73f 100644
--- a/Source/core/css/MediaList.h
+++ b/Source/core/css/MediaList.h
@@ -36,21 +36,13 @@ class Document;
class MediaList;
class MediaQuery;
-enum MediaQueryParserMode {
- MediaQueryNormalMode,
- MediaQueryStrictMode,
-};
-
class MediaQuerySet : public RefCounted<MediaQuerySet> {
public:
static PassRefPtr<MediaQuerySet> create()
{
return adoptRef(new MediaQuerySet());
}
- static PassRefPtr<MediaQuerySet> create(const String& mediaString)
- {
- return adoptRef(new MediaQuerySet(mediaString, MediaQueryNormalMode));
- }
+ static PassRefPtr<MediaQuerySet> create(const String& mediaString);
~MediaQuerySet();
bool set(const String&);
@@ -72,16 +64,9 @@ public:
private:
MediaQuerySet();
- MediaQuerySet(const String& mediaQuery, MediaQueryParserMode);
MediaQuerySet(const MediaQuerySet&);
- PassOwnPtr<MediaQuery> parseMediaQuery(const String&, MediaQueryParserMode);
- void parseMediaQueryList(const String&, MediaQueryParserMode, Vector<OwnPtr<MediaQuery> >& result);
-
- MediaQueryParserMode parserMode() const { return static_cast<MediaQueryParserMode>(m_parserMode); }
-
- unsigned m_parserMode : 2;
- unsigned m_lastLine : 30;
+ unsigned m_lastLine;
Vector<OwnPtr<MediaQuery> > m_queries;
};
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698