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

Unified Diff: third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: remove unused checks Created 3 years, 8 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/modules/sensor/OrientationSensor.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp b/third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp
index c04e065940004d6f215b10dbb863e467d8e5104d..36b8187796bb509ddcf0e1bdd47159e32ea7eacc 100644
--- a/third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp
+++ b/third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp
@@ -104,9 +104,9 @@ void OrientationSensor::populateMatrix(
Float32ArrayOrFloat64ArrayOrDOMMatrix& matrix,
ExceptionState& exceptionState) {
if (matrix.isFloat32Array())
- populateMatrixInternal(matrix.getAsFloat32Array(), exceptionState);
+ populateMatrixInternal(matrix.getAsFloat32Array().view(), exceptionState);
else if (matrix.isFloat64Array())
- populateMatrixInternal(matrix.getAsFloat64Array(), exceptionState);
+ populateMatrixInternal(matrix.getAsFloat64Array().view(), exceptionState);
else if (matrix.isDOMMatrix())
populateMatrixInternal(matrix.getAsDOMMatrix(), exceptionState);
else

Powered by Google App Engine
This is Rietveld 408576698