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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp

Issue 2559013002: Add ColorBehavior to blink::Image draw methods (Closed)
Patch Set: Rebase Created 4 years 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: third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
index 3752a99cf75be118af38927ad8c2c52b159ee09a..0f9629f48d5d391821eb71bd0db8549704176d73 100644
--- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
@@ -192,7 +192,12 @@ sk_sp<SkImageFilter> FEImage::createImageFilter() {
if (auto* layoutObject = referencedLayoutObject())
return createImageFilterForLayoutObject(*layoutObject);
- sk_sp<SkImage> image = m_image ? m_image->imageForCurrentFrame() : nullptr;
+ // TODO(ccameron): Determine the correct color behavior for this function.
+ // https://crbug.com/667431
+ sk_sp<SkImage> image = m_image
+ ? m_image->imageForCurrentFrame(
+ ColorBehavior::transformToGlobalTarget())
+ : nullptr;
if (!image) {
// "A href reference that is an empty image (zero width or zero height),
// that fails to download, is non-existent, or that cannot be displayed

Powered by Google App Engine
This is Rietveld 408576698