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

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

Issue 483633002: Add toFloat*Array() methods and use them in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TestExepectations Created 6 years, 4 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: Source/core/dom/DOMMatrixReadOnly.h
diff --git a/Source/core/dom/DOMMatrixReadOnly.h b/Source/core/dom/DOMMatrixReadOnly.h
index e0460f384fefbeb39f016c3c7c7e6d5bffde74a4..f55b7b7f6cad5042b93f5338ac2906fb4afd1e51 100644
--- a/Source/core/dom/DOMMatrixReadOnly.h
+++ b/Source/core/dom/DOMMatrixReadOnly.h
@@ -8,6 +8,8 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/heap/Handle.h"
#include "platform/transforms/TransformationMatrix.h"
+#include "wtf/Float32Array.h"
+#include "wtf/Float64Array.h"
namespace blink {
@@ -48,6 +50,9 @@ public:
DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1,
double ox = 0, double oy = 0, double oz = 0);
+ PassRefPtr<Float32Array> toFloat32Array() const;
+ PassRefPtr<Float64Array> toFloat64Array() const;
+
const TransformationMatrix& matrix() const { return m_matrix; }
void trace(Visitor*) { }
« no previous file with comments | « LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html ('k') | Source/core/dom/DOMMatrixReadOnly.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698