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

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

Issue 2047923002: [WIP] Add support for CSSValue-> CSSLengthValue and CSSTranslation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@supported-types
Patch Set: Created 4 years, 6 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 6fef39295be5ecc6af26aceec39164e7ecf91fab..7fafde2079ebf22e398b7229afe2a3f4feaa0967 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSCalcLength.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSCalcLength.h
@@ -5,6 +5,7 @@
#ifndef CSSCalcLength_h
#define CSSCalcLength_h
+#include "core/css/CSSCalculationValue.h"
#include "core/css/cssom/CSSLengthValue.h"
#include "wtf/BitVector.h"
@@ -12,17 +13,21 @@ namespace blink {
class CalcDictionary;
class CSSSimpleLength;
+class CSSValue;
class CORE_EXPORT CSSCalcLength final : public CSSLengthValue {
DEFINE_WRAPPERTYPEINFO();
public:
static CSSCalcLength* create(const CSSLengthValue*);
+ static CSSCalcLength* create(const CalcDictionary&);
static CSSCalcLength* create(const CalcDictionary&, ExceptionState&);
static CSSCalcLength* create(const CSSLengthValue* length, ExceptionState&)
{
return create(length);
}
+ static CSSCalcLength* fromCSSValue(const CSSValue&);
+
#define GETTER_MACRO(name, type) \
double name(bool& isNull) \
{ \
@@ -56,14 +61,16 @@ public:
protected:
CSSLengthValue* addInternal(const CSSLengthValue* other, ExceptionState&) override;
CSSLengthValue* subtractInternal(const CSSLengthValue* other, ExceptionState&) override;
- CSSLengthValue* multiplyInternal(double, ExceptionState&) override;
- CSSLengthValue* divideInternal(double, ExceptionState&) override;
+ CSSLengthValue* multiplyInternal(double) override;
+ CSSLengthValue* divideInternal(double) override;
private:
CSSCalcLength();
CSSCalcLength(const CSSCalcLength& other);
CSSCalcLength(const CSSSimpleLength& other);
+ static CSSCalcLength* populateCalcLengthFromExpressionNode(const CSSCalcExpressionNode*);
+
static int indexForUnit(CSSPrimitiveValue::UnitType);
static CSSPrimitiveValue::UnitType unitFromIndex(int index)
{
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCalculationValue.cpp ('k') | third_party/WebKit/Source/core/css/cssom/CSSCalcLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698