Index: Source/platform/graphics/filters/FETurbulence.cpp |
diff --git a/Source/platform/graphics/filters/FETurbulence.cpp b/Source/platform/graphics/filters/FETurbulence.cpp |
index b1e12ac23097525531f6847426fe2db1526cff6b..24d0c0c7988f131a813d0954830bf966fc8d5c0c 100644 |
--- a/Source/platform/graphics/filters/FETurbulence.cpp |
+++ b/Source/platform/graphics/filters/FETurbulence.cpp |
@@ -137,9 +137,8 @@ SkShader* FETurbulence::createShader() |
// and not the target bounding box scale (as SVGFilter::apply*Scale() |
// would do). Note also that we divide by the scale since this is |
// a frequency, not a period. |
- const AffineTransform& absoluteTransform = filter()->absoluteTransform(); |
- float baseFrequencyX = m_baseFrequencyX / absoluteTransform.a(); |
- float baseFrequencyY = m_baseFrequencyY / absoluteTransform.d(); |
+ float baseFrequencyX = m_baseFrequencyX / filter()->scale(); |
+ float baseFrequencyY = m_baseFrequencyY / filter()->scale(); |
return (type() == FETURBULENCE_TYPE_FRACTALNOISE) ? |
SkPerlinNoiseShader::CreateFractalNoise(SkFloatToScalar(baseFrequencyX), |
SkFloatToScalar(baseFrequencyY), numOctaves(), SkFloatToScalar(seed()), |