| 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 5e108265c50fb8b64586e9ccb0af093213b203d7..9ae1fd60567713f10660a605e025ff2c733f920f 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
|
| @@ -18,8 +18,12 @@ 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()) {
|
| + : Pattern(repeatMode),
|
| + m_tileImage(image->imageForCurrentFrame(
|
| + ColorBehavior::transformToGlobalTarget())) {
|
| m_previousLocalMatrix.setIdentity();
|
| if (m_tileImage) {
|
| // TODO(fmalita): mechanism to extract the actual SkImageInfo from an
|
|
|