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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 2703663002: Display images in multiline Braille (Closed)
Patch Set: Final feedback Created 3 years, 10 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 06100e38fd1cb5fd5a5af6bee773e5fa21b51217..25c2a686736e20807710278f61da12646ff56662 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -896,8 +896,12 @@ String AXLayoutObject::imageDataUrl(const IntSize& maxSize) const {
if (!imageBitmap)
return String();
+ StaticBitmapImage* bitmapImage = imageBitmap->bitmapImage();
+ if (!bitmapImage)
+ return String();
+
// TODO(ccameron): AXLayoutObject::imageDataUrl should create sRGB images.
- sk_sp<SkImage> image = imageBitmap->bitmapImage()->imageForCurrentFrame(
+ sk_sp<SkImage> image = bitmapImage->imageForCurrentFrame(
ColorBehavior::transformToGlobalTarget());
if (!image || image->width() <= 0 || image->height() <= 0)
return String();
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698