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

Unified Diff: Source/core/html/canvas/CanvasPattern.cpp

Issue 527193002: Support CanvasPattern.setTransform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: putting under a runtime flag Created 6 years, 3 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 | « Source/core/html/canvas/CanvasPattern.h ('k') | Source/core/html/canvas/CanvasPattern.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasPattern.cpp
diff --git a/Source/core/html/canvas/CanvasPattern.cpp b/Source/core/html/canvas/CanvasPattern.cpp
index 0d6f44fe066b857538eed1cc06cec43e521e493f..feb5767ae902a6e455d2321e002d7e03efd2f3b8 100644
--- a/Source/core/html/canvas/CanvasPattern.cpp
+++ b/Source/core/html/canvas/CanvasPattern.cpp
@@ -57,4 +57,9 @@ CanvasPattern::CanvasPattern(PassRefPtr<Image> image, Pattern::RepeatMode repeat
{
}
+void CanvasPattern::setTransform(SVGMatrixTearOff* transform)
+{
+ pattern()->setPatternSpaceTransform(transform ? transform->value() : AffineTransform(1, 0, 0, 1, 0, 0));
+}
+
}
« no previous file with comments | « Source/core/html/canvas/CanvasPattern.h ('k') | Source/core/html/canvas/CanvasPattern.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698