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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageSetValue.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/CSSImageSetValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSImageSetValue.h b/third_party/WebKit/Source/core/css/CSSImageSetValue.h
index 6e339ea426c082bec2a40411943fadb748f42de7..26d52f2f1f2e3e2a245a2ab7a491ec920951740e 100644
--- a/third_party/WebKit/Source/core/css/CSSImageSetValue.h
+++ b/third_party/WebKit/Source/core/css/CSSImageSetValue.h
@@ -38,11 +38,14 @@ class StyleFetchedImageSet;
class CSSImageSetValue : public CSSValueList {
public:
-
static PassRefPtrWillBeRawPtr<CSSImageSetValue> create()
{
return adoptRefWillBeNoop(new CSSImageSetValue());
}
+ static PassRefPtrWillBeRawPtr<CSSImageSetValue> deserializeAfterDispatch(unsigned bitfields, CSSDeserializeStream* stream)
+ {
+ return adoptRefWillBeNoop(new CSSImageSetValue(bitfields, stream));
+ }
~CSSImageSetValue();
bool isCachePending(float deviceScaleFactor) const;
@@ -62,6 +65,8 @@ public:
bool hasFailedOrCanceledSubresources() const;
+ void serializeAfterDispatch(CSSSerializeStream*) const;
+
DECLARE_TRACE_AFTER_DISPATCH();
protected:
@@ -69,6 +74,7 @@ protected:
private:
CSSImageSetValue();
+ CSSImageSetValue(unsigned bitfields, CSSDeserializeStream*);
void fillImageSet();
static inline bool compareByScaleFactor(ImageWithScale first, ImageWithScale second) { return first.scaleFactor < second.scaleFactor; }
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSGradientValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSImageSetValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698