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

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

Issue 1481383002: [Experimental] CSSSerializer Proof-of-concept Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: snapshot: top_25 sites ser/dser now works Created 4 years, 11 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: third_party/WebKit/Source/core/css/MediaList.h
diff --git a/third_party/WebKit/Source/core/css/MediaList.h b/third_party/WebKit/Source/core/css/MediaList.h
index 7595acf0b534365d15e29a57e93fa3c0bd430cb4..a16aebad1a33f2acead903b8a0d55c3eb61803b6 100644
--- a/third_party/WebKit/Source/core/css/MediaList.h
+++ b/third_party/WebKit/Source/core/css/MediaList.h
@@ -33,7 +33,9 @@
namespace blink {
+class CSSDeserializeStream;
class CSSRule;
+class CSSSerializeStream;
class CSSStyleSheet;
class ExceptionState;
class MediaList;
@@ -48,6 +50,7 @@ public:
}
static PassRefPtrWillBeRawPtr<MediaQuerySet> create(const String& mediaString);
static PassRefPtrWillBeRawPtr<MediaQuerySet> createOffMainThread(const String& mediaString);
+ static PassRefPtrWillBeRawPtr<MediaQuerySet> deserialize(CSSDeserializeStream*);
bool set(const String&);
bool add(const String&);
@@ -61,6 +64,7 @@ public:
PassRefPtrWillBeRawPtr<MediaQuerySet> copy() const { return adoptRefWillBeNoop(new MediaQuerySet(*this)); }
+ void serialize(CSSSerializeStream*) const;
DECLARE_TRACE();
private:
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValuePair.cpp ('k') | third_party/WebKit/Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698