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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageSetValue.cpp

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.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp b/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
index 7e25d9246477021d72f3735f61994d13f5f32166..808a37917ada7655344f436e2ae7dec71d87b45c 100644
--- a/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
@@ -27,6 +27,8 @@
#include "core/css/CSSImageValue.h"
#include "core/css/CSSPrimitiveValue.h"
+#include "core/css/serializer/CSSDeserializeStream.h"
+#include "core/css/serializer/CSSSerializeStream.h"
#include "core/dom/Document.h"
#include "core/fetch/FetchInitiatorTypeNames.h"
#include "core/fetch/FetchRequest.h"
@@ -48,6 +50,13 @@ CSSImageSetValue::CSSImageSetValue()
{
}
+CSSImageSetValue::CSSImageSetValue(unsigned bitfields, CSSDeserializeStream* stream)
+ : CSSValueList(ImageSetClass, bitfields, stream)
+ , m_isCachePending(true)
+ , m_cachedScaleFactor(1)
+{
+}
+
CSSImageSetValue::~CSSImageSetValue()
{
#if !ENABLE(OILPAN)
@@ -171,6 +180,11 @@ bool CSSImageSetValue::hasFailedOrCanceledSubresources() const
return true;
}
+void CSSImageSetValue::serializeAfterDispatch(CSSSerializeStream* stream) const
+{
+ CSSValueList::serializeAfterDispatch(stream);
+}
+
DEFINE_TRACE_AFTER_DISPATCH(CSSImageSetValue)
{
visitor->trace(m_cachedImageSet);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageSetValue.h ('k') | third_party/WebKit/Source/core/css/CSSImageValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698