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

Unified Diff: third_party/WebKit/Source/core/css/cssom/LengthValue.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/LengthValue.h
diff --git a/third_party/WebKit/Source/core/css/cssom/LengthValue.h b/third_party/WebKit/Source/core/css/cssom/LengthValue.h
index dbf2763a894796ae2f9296de4cc905255e9c7a13..91ef8eb39da32ec05394476ebda9fae8cea45bf4 100644
--- a/third_party/WebKit/Source/core/css/cssom/LengthValue.h
+++ b/third_party/WebKit/Source/core/css/cssom/LengthValue.h
@@ -23,7 +23,10 @@ public:
LengthValue* multiply(double, ExceptionState&);
LengthValue* divide(double, ExceptionState&);
+ double computeLengthPx(ExceptionState&) const;
+
virtual bool containsPercent() const = 0;
+ virtual bool isRelative() const = 0;
static LengthValue* parse(const String& cssString, ExceptionState&);
static LengthValue* fromValue(double value, const String& typeStr, ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698