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

Side by Side Diff: third_party/WebKit/Source/core/geometry/DOMMatrix.h

Issue 2868953002: Stop accepting string constructor of DOMMatrix on workers (Closed)
Patch Set: x 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/geometry/DOMMatrix.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DOMMatrix_h 5 #ifndef DOMMatrix_h
6 #define DOMMatrix_h 6 #define DOMMatrix_h
7 7
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h" 9 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h"
10 #include "core/dom/ArrayBufferViewHelpers.h" 10 #include "core/dom/ArrayBufferViewHelpers.h"
11 #include "core/geometry/DOMMatrixInit.h" 11 #include "core/geometry/DOMMatrixInit.h"
12 #include "core/geometry/DOMMatrixReadOnly.h" 12 #include "core/geometry/DOMMatrixReadOnly.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly { 16 class CORE_EXPORT DOMMatrix : public DOMMatrixReadOnly {
17 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
18 18
19 public: 19 public:
20 static DOMMatrix* Create(ExceptionState&); 20 static DOMMatrix* Create(ExecutionContext*, ExceptionState&);
21 static DOMMatrix* Create(StringOrUnrestrictedDoubleSequence&, 21 static DOMMatrix* Create(ExecutionContext*,
22 StringOrUnrestrictedDoubleSequence&,
22 ExceptionState&); 23 ExceptionState&);
23 // TODO(fserb): double check those two bellow are needed: 24 // TODO(fserb): double check those two bellow are needed:
24 static DOMMatrix* Create(DOMMatrixReadOnly*, 25 static DOMMatrix* Create(DOMMatrixReadOnly*,
25 ExceptionState& = ASSERT_NO_EXCEPTION); 26 ExceptionState& = ASSERT_NO_EXCEPTION);
26 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&); 27 static DOMMatrix* Create(const SkMatrix44&, ExceptionState&);
27 static DOMMatrix* fromFloat32Array(NotShared<DOMFloat32Array>, 28 static DOMMatrix* fromFloat32Array(NotShared<DOMFloat32Array>,
28 ExceptionState&); 29 ExceptionState&);
29 static DOMMatrix* fromFloat64Array(NotShared<DOMFloat64Array>, 30 static DOMMatrix* fromFloat64Array(NotShared<DOMFloat64Array>,
30 ExceptionState&); 31 ExceptionState&);
31 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&); 32 static DOMMatrix* fromMatrix(DOMMatrixInit&, ExceptionState&);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 template <typename T> 118 template <typename T>
118 DOMMatrix(T sequence, int size); 119 DOMMatrix(T sequence, int size);
119 120
120 void SetIs2D(bool value); 121 void SetIs2D(bool value);
121 void SetNAN(); 122 void SetNAN();
122 }; 123 };
123 124
124 } // namespace blink 125 } // namespace blink
125 126
126 #endif 127 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/geometry/DOMMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698