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

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

Issue 1689573002: CSS Typed OM: asMatrix for TransformComponent with LengthValue types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@asMatrixMethod
Patch Set: Add in Translation and use exceptionState.hadException Created 4 years, 10 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/StyleCalcLength.h
diff --git a/third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h b/third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h
index d8a5fcfd6558e8e839018dd214adbf0c28619772..dddf4a57d2c54e96affd98e48c94ad915d284731 100644
--- a/third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h
+++ b/third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h
@@ -50,6 +50,19 @@ public:
bool containsPercent() const override;
+ bool isRelative() const override
+ {
+ return has(CSSPrimitiveValue::UnitType::Percentage)
+ || has(CSSPrimitiveValue::UnitType::Ems)
+ || has(CSSPrimitiveValue::UnitType::Exs)
+ || has(CSSPrimitiveValue::UnitType::Chs)
+ || has(CSSPrimitiveValue::UnitType::Rems)
+ || has(CSSPrimitiveValue::UnitType::ViewportWidth)
+ || has(CSSPrimitiveValue::UnitType::ViewportHeight)
+ || has(CSSPrimitiveValue::UnitType::ViewportMin)
+ || has(CSSPrimitiveValue::UnitType::ViewportMax);
+ }
+
PassRefPtrWillBeRawPtr<CSSValue> toCSSValue() const override;
StyleValueType type() const override { return CalcLengthType; }

Powered by Google App Engine
This is Rietveld 408576698