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

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

Powered by Google App Engine
This is Rietveld 408576698