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

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

Issue 2371673002: [CSS Typed OM] Implement support for CSSValue -> CSSCalcLength (Closed)
Patch Set: sync Created 3 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.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp b/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp
index fc1115d290b7b75ae992881544438374426eb800..b1be505ebfaf3ce21ec9261daa6006076807f662 100644
--- a/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp
@@ -255,6 +255,20 @@ class CSSCalcPrimitiveValue final : public CSSCalcExpressionNode {
CSSPrimitiveValue::UnitType typeWithCalcResolved() const override {
return m_value->typeWithCalcResolved();
}
+ const CSSCalcExpressionNode* leftExpressionNode() const {
+ NOTREACHED();
+ return nullptr;
+ }
+
+ const CSSCalcExpressionNode* rightExpressionNode() const {
+ NOTREACHED();
+ return nullptr;
+ }
+
+ CalcOperator operatorType() const {
+ NOTREACHED();
+ return CalcAdd;
+ }
DEFINE_INLINE_VIRTUAL_TRACE() {
visitor->trace(m_value);
@@ -554,6 +568,13 @@ class CSSCalcBinaryOperation final : public CSSCalcExpressionNode {
}
Type getType() const override { return CssCalcBinaryOperation; }
+ const CSSCalcExpressionNode* leftExpressionNode() const { return m_leftSide; }
+
+ const CSSCalcExpressionNode* rightExpressionNode() const {
+ return m_rightSide;
+ }
+
+ CalcOperator operatorType() 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.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698