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

Unified Diff: third_party/WebKit/Source/core/css/CSSFontFeatureValue.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/CSSFontFeatureValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontFeatureValue.cpp b/third_party/WebKit/Source/core/css/CSSFontFeatureValue.cpp
index 374d37792fec0a3c3158b77b5dab43a661683746..6fecdc35ea1d26cd0a8c00ccac8f0c1bb31fb0aa 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFeatureValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFeatureValue.cpp
@@ -25,6 +25,8 @@
#include "core/css/CSSFontFeatureValue.h"
+#include "core/css/serializer/CSSDeserializeStream.h"
+#include "core/css/serializer/CSSSerializeStream.h"
#include "wtf/text/StringBuilder.h"
namespace blink {
@@ -36,6 +38,14 @@ CSSFontFeatureValue::CSSFontFeatureValue(const AtomicString& tag, int value)
{
}
+PassRefPtrWillBeRawPtr<CSSFontFeatureValue> CSSFontFeatureValue::deserializeAfterDispatch(CSSDeserializeStream* stream)
+{
+ AtomicString tag = stream->readAtomicString();
+ int value = stream->readInt();
+
+ return create(tag, value);
+}
+
String CSSFontFeatureValue::customCSSText() const
{
StringBuilder builder;
@@ -51,4 +61,10 @@ bool CSSFontFeatureValue::equals(const CSSFontFeatureValue& other) const
return m_tag == other.m_tag && m_value == other.m_value;
}
+void CSSFontFeatureValue::serializeAfterDispatch(CSSSerializeStream* stream) const
+{
+ stream->writeAtomicString(m_tag);
+ stream->writeInt(m_value);
+}
+
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFeatureValue.h ('k') | third_party/WebKit/Source/core/css/CSSFunctionValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698