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

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

Issue 2938353002: [CSS Typed OM] Add missing error handling for CSSRotation constructor (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.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSRotation.h b/third_party/WebKit/Source/core/css/cssom/CSSRotation.h
index 0e8b6d598bbde69659d7b134df45f441ed4f7572..e4e0809e520f3f7b35d2b8508f16a853e0fcff33 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSRotation.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSRotation.h
@@ -21,17 +21,24 @@ class CORE_EXPORT CSSRotation final : public CSSTransformComponent {
public:
// Constructors defined in the IDL.
- static CSSRotation* Create(const CSSNumericValue* angle_value) {
- return new CSSRotation(angle_value);
+ static CSSRotation* Create(CSSNumericValue* angle,
+ ExceptionState& exception_state) {
+ return Create(0, 0, 1, angle, exception_state);
}
static CSSRotation* Create(double x,
double y,
double z,
- const CSSNumericValue* angle_value) {
- return new CSSRotation(x, y, z, angle_value);
- }
+ CSSNumericValue* angle,
+ ExceptionState&);
// Blink-internal ways of creating CSSRotations.
+ static CSSRotation* Create(CSSNumericValue* angle) {
+ return Create(0, 0, 1, angle);
+ }
+ static CSSRotation* Create(double x,
+ double y,
+ double z,
+ CSSNumericValue* angle);
alancutter (OOO until 2018) 2017/06/19 10:51:27 I don't think we should add these if we never use
meade_UTC10 2017/06/21 07:11:30 This existed before (I actually added the exceptio
alancutter (OOO until 2018) 2017/06/22 03:12:12 My mistake, didn't realise they were used.
static CSSRotation* FromCSSValue(const CSSFunctionValue&);
// Getters and setters for attributes defined in the IDL.

Powered by Google App Engine
This is Rietveld 408576698