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

Unified Diff: third_party/WebKit/Source/core/css/cssom/SimpleLength.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/SimpleLength.h
diff --git a/third_party/WebKit/Source/core/css/cssom/SimpleLength.h b/third_party/WebKit/Source/core/css/cssom/SimpleLength.h
index 97e05347e23a2cccbc038025c324f2c173bb2589..55b2b29841be3b45924fc0ae187447479edcc7ae 100644
--- a/third_party/WebKit/Source/core/css/cssom/SimpleLength.h
+++ b/third_party/WebKit/Source/core/css/cssom/SimpleLength.h
@@ -32,6 +32,7 @@ public:
}
bool containsPercent() const override;
+ bool isRelative() const override { return CSSPrimitiveValue::isRelativeUnit(lengthUnit()); }
double value() const { return m_value; }
String unit() const { return String(CSSPrimitiveValue::unitTypeToString(m_unit)); }

Powered by Google App Engine
This is Rietveld 408576698