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

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

Issue 2942183002: [CSS Typed OM] Make CSSRotation attributes mutable. (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/CSSRotation.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSRotation.cpp b/third_party/WebKit/Source/core/css/cssom/CSSRotation.cpp
index c0ffda82a5d2fb8937f2169c01bab6501d78828b..0d8607f9096b3a12ea406816b8f8ab4e7b19a821 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSRotation.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSRotation.cpp
@@ -97,6 +97,19 @@ CSSRotation* CSSRotation::FromCSSValue(const CSSFunctionValue& value) {
}
}
+void CSSRotation::setAngle(CSSNumericValue* angle,
+ ExceptionState& exception_state) {
+ if (angle->GetType() != CSSStyleValue::StyleValueType::kAngleType) {
+ exception_state.ThrowTypeError("Must pass an angle to CSSRotation");
+ return;
+ }
+ if (angle->IsCalculated()) {
+ exception_state.ThrowTypeError("Calculated angles are not supported yet");
+ return;
+ }
+ angle_ = angle;
+}
+
CSSFunctionValue* CSSRotation::ToCSSValue() const {
return nullptr;
// TODO(meade): Re-implement this when we finish rewriting number/length
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSRotation.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSRotation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698