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

Unified Diff: third_party/WebKit/Source/core/css/CSSCalculationValue.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/CSSCalculationValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSCalculationValue.h b/third_party/WebKit/Source/core/css/CSSCalculationValue.h
index 65e969dfa73923aecb2d5cecc2d2071e5752e255..945c67841a58c52028bc105c596cf11ff0c747d5 100644
--- a/third_party/WebKit/Source/core/css/CSSCalculationValue.h
+++ b/third_party/WebKit/Source/core/css/CSSCalculationValue.h
@@ -72,6 +72,7 @@ public:
CssCalcPrimitiveValue = 1,
CssCalcBinaryOperation
};
+ static PassRefPtrWillBeRawPtr<CSSCalcExpressionNode> deserialize(CSSDeserializeStream*);
virtual bool isZero() const = 0;
virtual double doubleValue() const = 0;
@@ -86,6 +87,7 @@ public:
virtual CSSPrimitiveValue::UnitType typeWithCalcResolved() const = 0;
bool isInteger() const { return m_isInteger; }
+ virtual void serialize(CSSSerializeStream*) const;
DEFINE_INLINE_VIRTUAL_TRACE() { }
protected:
@@ -104,6 +106,7 @@ class CORE_EXPORT CSSCalcValue : public RefCountedWillBeGarbageCollected<CSSCalc
public:
static PassRefPtrWillBeRawPtr<CSSCalcValue> create(const CSSParserTokenRange&, ValueRange);
static PassRefPtrWillBeRawPtr<CSSCalcValue> create(PassRefPtrWillBeRawPtr<CSSCalcExpressionNode>, ValueRange = ValueRangeAll);
+ static PassRefPtrWillBeRawPtr<CSSCalcValue> deserialize(CSSDeserializeStream*);
static PassRefPtrWillBeRawPtr<CSSCalcExpressionNode> createExpressionNode(PassRefPtrWillBeRawPtr<CSSPrimitiveValue>, bool isInteger = false);
static PassRefPtrWillBeRawPtr<CSSCalcExpressionNode> createExpressionNode(PassRefPtrWillBeRawPtr<CSSCalcExpressionNode>, PassRefPtrWillBeRawPtr<CSSCalcExpressionNode>, CalcOperator);
@@ -127,6 +130,8 @@ public:
String customCSSText() const;
bool equals(const CSSCalcValue&) const;
+ void serialize(CSSSerializeStream* stream) const;
+
DEFINE_INLINE_TRACE()
{
visitor->trace(m_expression);
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/CSSCalculationValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698