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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImagePattern.cpp

Issue 2727133002: Remove ColorBehavior argument to Image::imageForCurrentFrame (Closed)
Patch Set: Rebase Created 3 years, 9 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: third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
index 7d26d488c44f1f914c7cc9fc6f26678f7793a19d..28b2dbd30ed4dc940af3d3604faf9bd30d950b88 100644
--- a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
@@ -17,12 +17,8 @@ PassRefPtr<ImagePattern> ImagePattern::create(PassRefPtr<Image> image,
return adoptRef(new ImagePattern(std::move(image), repeatMode));
}
-// TODO(ccameron): ImagePattern should not draw to a globally set color space.
-// https://crbug.com/672306
ImagePattern::ImagePattern(PassRefPtr<Image> image, RepeatMode repeatMode)
- : Pattern(repeatMode),
- m_tileImage(image->imageForCurrentFrame(
- ColorBehavior::transformToGlobalTarget())) {
+ : Pattern(repeatMode), m_tileImage(image->imageForCurrentFrame()) {
m_previousLocalMatrix.setIdentity();
if (m_tileImage) {
// TODO(fmalita): mechanism to extract the actual SkImageInfo from an

Powered by Google App Engine
This is Rietveld 408576698