Index: third_party/WebKit/Source/core/css/cssom/CSSSkew.cpp |
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSSkew.cpp b/third_party/WebKit/Source/core/css/cssom/CSSSkew.cpp |
index 12a4ec99ed92d80eb5c5d115d136a05e8825bf45..2849bd19e176b423d0303db095d12e0c845e93ce 100644 |
--- a/third_party/WebKit/Source/core/css/cssom/CSSSkew.cpp |
+++ b/third_party/WebKit/Source/core/css/cssom/CSSSkew.cpp |
@@ -11,6 +11,30 @@ |
namespace blink { |
+void CSSSkew::setAx(CSSNumericValue* value, ExceptionState& exception_state) { |
+ if (value->GetType() != CSSStyleValue::StyleValueType::kAngleType) { |
+ exception_state.ThrowTypeError("Must specify an angle unit"); |
+ return; |
+ } |
+ if (value->IsCalculated()) { |
+ exception_state.ThrowTypeError("Calculated angles are not supported yet"); |
+ return; |
+ } |
+ ax_ = value; |
+} |
+ |
+void CSSSkew::setAy(CSSNumericValue* value, ExceptionState& exception_state) { |
+ if (value->GetType() != CSSStyleValue::StyleValueType::kAngleType) { |
+ exception_state.ThrowTypeError("Must specify an angle unit"); |
+ return; |
+ } |
+ if (value->IsCalculated()) { |
+ exception_state.ThrowTypeError("Calculated angles are not supported yet"); |
+ return; |
+ } |
+ ay_ = value; |
+} |
+ |
CSSSkew* CSSSkew::FromCSSValue(const CSSFunctionValue& value) { |
return nullptr; |
// TODO(meade): Re-enable this code once numbers and units types have been |