Index: Source/platform/graphics/filters/FEDropShadow.cpp |
diff --git a/Source/platform/graphics/filters/FEDropShadow.cpp b/Source/platform/graphics/filters/FEDropShadow.cpp |
index 2a16778a3ff4870caa57a959d5ad8471454ab36d..b8e2ebddf308607848e21d5860f96dd86e88ee94 100644 |
--- a/Source/platform/graphics/filters/FEDropShadow.cpp |
+++ b/Source/platform/graphics/filters/FEDropShadow.cpp |
@@ -88,7 +88,7 @@ void FEDropShadow::applySoftware() |
GraphicsContext* resultContext = resultImage->context(); |
ASSERT(resultContext); |
- Color color = m_shadowColor.combineWithAlpha(m_shadowOpacity); |
+ Color color = adaptColorToOperatingColorSpace(m_shadowColor.combineWithAlpha(m_shadowOpacity)); |
SkAutoTUnref<SkImageFilter> blurFilter(new SkBlurImageFilter(blurRadius.width(), blurRadius.height())); |
SkAutoTUnref<SkColorFilter> colorFilter(SkColorFilter::CreateModeFilter(color.rgb(), SkXfermode::kSrcIn_Mode)); |
SkPaint paint; |
@@ -113,7 +113,7 @@ PassRefPtr<SkImageFilter> FEDropShadow::createImageFilter(SkiaImageFilterBuilder |
float dy = filter()->applyVerticalScale(m_dy); |
float stdX = filter()->applyHorizontalScale(m_stdX); |
float stdY = filter()->applyVerticalScale(m_stdY); |
- Color color = m_shadowColor.combineWithAlpha(m_shadowOpacity); |
+ Color color = adaptColorToOperatingColorSpace(m_shadowColor.combineWithAlpha(m_shadowOpacity)); |
SkImageFilter::CropRect cropRect = getCropRect(builder->cropOffset()); |
return adoptRef(new SkDropShadowImageFilter(SkFloatToScalar(dx), SkFloatToScalar(dy), SkFloatToScalar(stdX), SkFloatToScalar(stdY), color.rgb(), input.get(), &cropRect)); |
} |