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

Unified Diff: third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 years, 10 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/dom/DOMMatrixReadOnly.h
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h
index c78bfe50da335a02e5411f03f91910faa8aa748f..be5f499583f072f971818624598388e119148390 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h
+++ b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h
@@ -5,12 +5,13 @@
#ifndef DOMMatrixReadOnly_h
#define DOMMatrixReadOnly_h
+#include <memory>
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/dom/DOMTypedArray.h"
+#include "core/dom/MaybeShared.h"
#include "platform/heap/Handle.h"
#include "platform/transforms/TransformationMatrix.h"
-#include <memory>
namespace blink {
@@ -28,8 +29,12 @@ class CORE_EXPORT DOMMatrixReadOnly
static DOMMatrixReadOnly* create(ExceptionState&);
static DOMMatrixReadOnly* create(const String&, ExceptionState&);
static DOMMatrixReadOnly* create(Vector<double>, ExceptionState&);
- static DOMMatrixReadOnly* fromFloat32Array(DOMFloat32Array*, ExceptionState&);
- static DOMMatrixReadOnly* fromFloat64Array(DOMFloat64Array*, ExceptionState&);
+ static DOMMatrixReadOnly* fromFloat32Array(
+ const MaybeShared<DOMFloat32Array>&,
+ ExceptionState&);
+ static DOMMatrixReadOnly* fromFloat64Array(
+ const MaybeShared<DOMFloat64Array>&,
+ ExceptionState&);
static DOMMatrixReadOnly* fromMatrix(DOMMatrixInit&, ExceptionState&);
virtual ~DOMMatrixReadOnly();

Powered by Google App Engine
This is Rietveld 408576698