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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSCalcLength.h

Issue 2312293003: [CSSTypedOM] Computed StylePropertyMap use ComputedStyle for Lengths (Closed)
Patch Set: Fixed unit test Created 4 years, 3 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/cssom/CSSCalcLength.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSCalcLength.h b/third_party/WebKit/Source/core/css/cssom/CSSCalcLength.h
index a8c087eaa71380824bd398154c36917283e51898..447835f46ff0e571c8b81aef64fc4c0c41aebe38 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSCalcLength.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSCalcLength.h
@@ -23,6 +23,8 @@ public:
return create(length);
}
+ static CSSCalcLength* fromLength(const Length*);
+
#define GETTER_MACRO(name, type) \
double name(bool& isNull) \
{ \
@@ -53,6 +55,7 @@ public:
CSSValue* toCSSValue() const override;
StyleValueType type() const override { return CalcLengthType; }
+
protected:
CSSLengthValue* addInternal(const CSSLengthValue* other, ExceptionState&) override;
CSSLengthValue* subtractInternal(const CSSLengthValue* other, ExceptionState&) override;

Powered by Google App Engine
This is Rietveld 408576698