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

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

Issue 2921243002: [CSS Typed OM] Add setters for the CSSNumericValues contained in CSSSkew (Closed)
Patch Set: Rebase Created 3 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/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
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSSkew.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSSkew.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698