Chromium Code Reviews| 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 0569076bf68a63504bd25600ff72a8c29da7c3ef..8f4fff10f436a7e0e55cf0f5cee776c3ab13f4e6 100644 |
| --- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp |
| +++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp |
| @@ -763,7 +763,9 @@ bool AXLayoutObject::computeAccessibilityIsIgnored(IgnoredReasons* ignoredReason |
| // check whether laid out image was stretched from one-dimensional file image |
| if (image->cachedImage()) { |
| - LayoutSize imageSize = image->cachedImage()->imageSizeForLayoutObject(m_layoutObject, image->view()->zoomFactor()); |
| + RespectImageOrientationEnum shouldRespectImageOrientation = |
| + m_layoutObject ? m_layoutObject->shouldRespectImageOrientation() : DoNotRespectImageOrientation; |
| + LayoutSize imageSize = image->cachedImage()->imageSize(shouldRespectImageOrientation, image->view()->zoomFactor()); |
|
Yoav Weiss
2015/11/24 10:29:07
ditto
davve
2015/11/24 12:49:13
If I had such a function, yes. (again)
|
| if (imageSize.height() <= 1 || imageSize.width() <= 1) { |
| if (ignoredReasons) |
| ignoredReasons->append(IgnoredReason(AXProbablyPresentational)); |