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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.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/modules/accessibility/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index ef53fd503dd5e541bc369608b8c3556dd5d90418..63308e4c8898d49a59fdb3401f386e5c04a014a0 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -888,7 +888,9 @@ String AXLayoutObject::imageDataUrl(const IntSize& maxSize) const {
if (!imageBitmap)
return String();
- sk_sp<SkImage> image = imageBitmap->bitmapImage()->imageForCurrentFrame();
+ // TODO(ccameron): AXLayoutObject::imageDataUrl should create sRGB images.
+ sk_sp<SkImage> image = imageBitmap->bitmapImage()->imageForCurrentFrame(
+ ColorBehavior::transformToGlobalTarget());
if (!image || image->width() <= 0 || image->height() <= 0)
return String();

Powered by Google App Engine
This is Rietveld 408576698