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

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

Issue 446803002: Implement translate() and translateSelf() in DOMMatrix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html ('k') | Source/core/dom/DOMMatrix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMMatrix.h
diff --git a/Source/core/dom/DOMMatrix.h b/Source/core/dom/DOMMatrix.h
index f125002128070016fdef08d375ae52c3c4a1320b..03ca8d013670cf082e9f63945b8f74fb714cd035 100644
--- a/Source/core/dom/DOMMatrix.h
+++ b/Source/core/dom/DOMMatrix.h
@@ -38,6 +38,8 @@ public:
void setM43(double value) { m_matrix.setM43(value); setIs2D(!value); }
void setM44(double value) { m_matrix.setM44(value); setIs2D(value != 1); }
+ DOMMatrix* translateSelf(double tx, double ty, double tz = 0);
+
private:
DOMMatrix(const TransformationMatrix&, bool is2D = true);
« no previous file with comments | « LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html ('k') | Source/core/dom/DOMMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698