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

Unified Diff: Source/core/platform/graphics/filters/FEDropShadow.cpp

Issue 16357011: Remove support for -webkit-color-correction (which we've never supported on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolve merge conflicts, obey brace style changes Created 7 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
Index: Source/core/platform/graphics/filters/FEDropShadow.cpp
diff --git a/Source/core/platform/graphics/filters/FEDropShadow.cpp b/Source/core/platform/graphics/filters/FEDropShadow.cpp
index a2c5406aa8af17e68babf1d1d574724f49bb17c0..4afb16b41b8f370ca427e997668d5f73a863f718 100644
--- a/Source/core/platform/graphics/filters/FEDropShadow.cpp
+++ b/Source/core/platform/graphics/filters/FEDropShadow.cpp
@@ -22,7 +22,6 @@
#include "core/platform/graphics/filters/FEDropShadow.h"
-#include "core/platform/graphics/ColorSpace.h"
#include "core/platform/graphics/GraphicsContext.h"
#include "core/platform/graphics/ShadowBlur.h"
#include "core/platform/graphics/filters/FEGaussianBlur.h"
@@ -111,10 +110,10 @@ void FEDropShadow::applySoftware()
GraphicsContext* resultContext = resultImage->context();
ASSERT(resultContext);
resultContext->setAlpha(m_shadowOpacity);
- resultContext->drawImageBuffer(sourceImage, ColorSpaceDeviceRGB, drawingRegionWithOffset);
+ resultContext->drawImageBuffer(sourceImage, drawingRegionWithOffset);
resultContext->setAlpha(1);
- ShadowBlur contextShadow(blurRadius, offset, m_shadowColor, ColorSpaceDeviceRGB);
+ ShadowBlur contextShadow(blurRadius, offset, m_shadowColor);
// TODO: Direct pixel access to ImageBuffer would avoid copying the ImageData.
IntRect shadowArea(IntPoint(), resultImage->internalSize());
@@ -125,10 +124,10 @@ void FEDropShadow::applySoftware()
resultImage->putByteArray(Premultiplied, srcPixelArray.get(), shadowArea.size(), shadowArea, IntPoint());
resultContext->setCompositeOperation(CompositeSourceIn);
- resultContext->fillRect(FloatRect(FloatPoint(), absolutePaintRect().size()), m_shadowColor, ColorSpaceDeviceRGB);
+ resultContext->fillRect(FloatRect(FloatPoint(), absolutePaintRect().size()), m_shadowColor);
resultContext->setCompositeOperation(CompositeDestinationOver);
- resultImage->context()->drawImageBuffer(sourceImage, ColorSpaceDeviceRGB, drawingRegion);
+ resultImage->context()->drawImageBuffer(sourceImage, drawingRegion);
}
TextStream& FEDropShadow::externalRepresentation(TextStream& ts, int indent) const
« no previous file with comments | « Source/core/platform/graphics/filters/FEComposite.cpp ('k') | Source/core/platform/graphics/filters/FEFlood.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698