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

Unified Diff: Source/platform/transforms/AffineTransform.h

Issue 701433002: Lazily allocate svg shape transforms, shrink RenderSVGShape by 44B (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Refactor for cleanliness Created 6 years, 1 month 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 | « Source/core/svg/SVGGraphicsElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/transforms/AffineTransform.h
diff --git a/Source/platform/transforms/AffineTransform.h b/Source/platform/transforms/AffineTransform.h
index 772653b7409ea3ddeee89ae91e6a92376eb07b64..5f6da760d83336c240d26c2724952797bb781db2 100644
--- a/Source/platform/transforms/AffineTransform.h
+++ b/Source/platform/transforms/AffineTransform.h
@@ -51,6 +51,8 @@ public:
void setMatrix(double a, double b, double c, double d, double e, double f);
+ void setTransform(const AffineTransform& other) { setMatrix(other.m_transform); }
+
void map(double x, double y, double& x2, double& y2) const;
// Rounds the mapped point to the nearest integer value.
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698