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

Unified Diff: third_party/WebKit/Source/platform/transforms/TransformationMatrix.h

Issue 1777613002: Add localToAbsoluteTransform and localToAncestorTransform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback about comments Created 4 years, 9 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/platform/transforms/TransformationMatrix.h
diff --git a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
index 7e2cf9d89a717c5243e47634fc1be9aabfef21d8..1da688c26970d0863779c13887111ff07f4db26d 100644
--- a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
+++ b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
@@ -319,6 +319,10 @@ public:
AffineTransform toAffineTransform() const;
+ // Flatten into a 2-D transformation (non-invertable).
+ // Same as gfx::Transform::FlattenTo2d(); see the docs for that function for details and discussion.
+ void flattenTo2d();
+
bool operator==(const TransformationMatrix& m2) const
{
return m_matrix[0][0] == m2.m_matrix[0][0]

Powered by Google App Engine
This is Rietveld 408576698