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

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

Issue 2703663002: Display images in multiline Braille (Closed)
Patch Set: Use freeze / thaw 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
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 e25a21c16397051532d290ac7328edd52910eebd..dc0d71e6502f91a97d040f537bc0be7e83020efe 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();

Powered by Google App Engine
This is Rietveld 408576698