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

Unified Diff: third_party/WebKit/Source/core/css/CSSInitialValue.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/CSSInitialValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSInitialValue.cpp b/third_party/WebKit/Source/core/css/CSSInitialValue.cpp
index 460c9620149840c665d0858ccb71e25486373d24..ff54d06eb5c5887680f76230f1597bdf4e2fc828 100644
--- a/third_party/WebKit/Source/core/css/CSSInitialValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSInitialValue.cpp
@@ -19,14 +19,27 @@
*/
#include "core/css/CSSInitialValue.h"
+#include "core/css/serializer/CSSDeserializeStream.h"
+#include "core/css/serializer/CSSSerializeStream.h"
#include "wtf/text/WTFString.h"
namespace blink {
+PassRefPtrWillBeRawPtr<CSSInitialValue> CSSInitialValue::deserializeAfterDispatch(CSSDeserializeStream* stream)
+{
+ bool isImplicit = stream->readBool();
+ return adoptRefWillBeNoop(new CSSInitialValue(isImplicit));
+}
+
String CSSInitialValue::customCSSText() const
{
return "initial";
}
+void CSSInitialValue::serializeAfterDispatch(CSSSerializeStream* stream) const
+{
+ stream->writeBool(m_isImplicit);
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSInitialValue.h ('k') | third_party/WebKit/Source/core/css/CSSKeyframesRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698