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

Unified Diff: third_party/WebKit/Source/core/css/CSSCalculationValue.cpp

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/CSSCalculationValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp b/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp
index b1de7219ff9af28f94b857a8c11157c4d59ecd18..8e425573158800866a2f15667d0ec60cce67a52d 100644
--- a/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp
@@ -259,6 +259,20 @@ public:
return m_value->typeWithCalcResolved();
}
+ const CSSCalcExpressionNode* getLHS() const
+ {
+ return nullptr;
+ }
+
+ const CSSCalcExpressionNode* getRHS() const
+ {
+ return nullptr;
+ }
+
+ CalcOperator op() const
+ {
+ return CalcAdd;
+ }
DEFINE_INLINE_VIRTUAL_TRACE()
{
@@ -494,6 +508,21 @@ public:
Type getType() const override { return CssCalcBinaryOperation; }
+ const CSSCalcExpressionNode* getLHS() const
+ {
+ return m_leftSide;
+ }
+
+ const CSSCalcExpressionNode* getRHS() const
+ {
+ return m_rightSide;
+ }
+
+ CalcOperator op() const
+ {
+ return m_operator;
+ }
+
CSSPrimitiveValue::UnitType typeWithCalcResolved() const override
{
switch (m_category) {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCalculationValue.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSCalcLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698