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

Unified Diff: Source/core/paint/SVGFilterPainter.cpp

Issue 1169273002: Always use the slimming paint method for implementing SVG shear filters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGFilterPainter.cpp
diff --git a/Source/core/paint/SVGFilterPainter.cpp b/Source/core/paint/SVGFilterPainter.cpp
index 7a1d4d8c8be4fdc1c7f43c3e13ec626d54754c4a..b2b596bc5ba84dbf89c7844fb8f405ed6fdcc61b 100644
--- a/Source/core/paint/SVGFilterPainter.cpp
+++ b/Source/core/paint/SVGFilterPainter.cpp
@@ -87,7 +87,7 @@ static void paintFilteredContent(LayoutObject& object, GraphicsContext* context,
// If the CTM contains rotation or shearing, apply the filter to
// the unsheared/unrotated matrix, and do the shearing/rotation
// as a final pass.
- AffineTransform ctm = RuntimeEnabledFeatures::slimmingPaintEnabled() ? SVGLayoutSupport::deprecatedCalculateTransformToLayer(&object) : context->getCTM();
+ AffineTransform ctm = SVGLayoutSupport::deprecatedCalculateTransformToLayer(&object);
if (ctm.b() || ctm.c()) {
AffineTransform scaleAndTranslate;
scaleAndTranslate.translate(ctm.e(), ctm.f());
@@ -95,10 +95,7 @@ static void paintFilteredContent(LayoutObject& object, GraphicsContext* context,
ASSERT(scaleAndTranslate.isInvertible());
AffineTransform shearAndRotate = scaleAndTranslate.inverse();
shearAndRotate.multiply(ctm);
- if (RuntimeEnabledFeatures::slimmingPaintEnabled())
- context->concatCTM(shearAndRotate.inverse());
- else
- context->setCTM(scaleAndTranslate);
+ context->concatCTM(shearAndRotate.inverse());
imageFilter = builder.buildTransform(shearAndRotate, imageFilter.get());
}
#endif
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698