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

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

Issue 2867883003: [CSS Typed OM] Delete obsolete number and length classes from Typed OM (Closed)
Patch Set: rebase Created 3 years, 7 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.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSTranslation.cpp b/third_party/WebKit/Source/core/css/cssom/CSSTranslation.cpp
index a7d1d66f489321d4f526946045094f99ebf0cef6..1d64903e34a52be52fbbb1daedf40a1ada27fbea 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSTranslation.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSTranslation.cpp
@@ -6,16 +6,17 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/css/CSSPrimitiveValue.h"
+#include "core/css/cssom/CSSNumericValue.h"
namespace blink {
-CSSTranslation* CSSTranslation::Create(CSSLengthValue* x,
- CSSLengthValue* y,
- CSSLengthValue* z,
+CSSTranslation* CSSTranslation::Create(CSSNumericValue* x,
+ CSSNumericValue* y,
+ CSSNumericValue* z,
ExceptionState& exception_state) {
if (z->ContainsPercent()) {
exception_state.ThrowTypeError(
- "CSSTranslation does not support z CSSLengthValue with percent units");
+ "CSSTranslation does not support z CSSNumericValue with percent units");
return nullptr;
}
return new CSSTranslation(x, y, z);
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSTranslation.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSTranslation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698