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

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

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/cssom/CSSTranslation.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSTranslation.h b/third_party/WebKit/Source/core/css/cssom/CSSTranslation.h
index e5ea97f1a3ceb61a2901909e1f503daed3140335..fbdb11aaa85e237e5ec41e108e03609ffc64c4a7 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSTranslation.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSTranslation.h
@@ -18,11 +18,15 @@ class CORE_EXPORT CSSTranslation final : public TransformComponent {
public:
static CSSTranslation* create(CSSLengthValue* x, CSSLengthValue* y, ExceptionState&)
{
+ return CSSTranslation::create(x, y);
+ }
+ static CSSTranslation* create(CSSLengthValue* x, CSSLengthValue* y)
+ {
return new CSSTranslation(x, y, nullptr);
}
static CSSTranslation* create(CSSLengthValue* x, CSSLengthValue* y, CSSLengthValue* z, ExceptionState&);
- static CSSTranslation* fromCSSValue(const CSSValue& value) { return nullptr; }
+ static CSSTranslation* fromCSSValue(const CSSValue& value);
CSSLengthValue* x() const { return m_x; }
CSSLengthValue* y() const { return m_y; }

Powered by Google App Engine
This is Rietveld 408576698