Commit 3728cb2d authored by harrison's avatar harrison

Reviewed by Darin.

        <rdar://problem/4517383> Hide all images used for spacing purpose in AX

        * bridge/mac/WebCoreAXObject.mm:
        (-[WebCoreAXObject accessibilityIsIgnored]):
        Check for one-dimensional image
        Check whether rendered image was stretched from one-dimensional file image



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a10639a4
2006-08-25 David Harrison <harrison@apple.com>
Reviewed by Darin.
<rdar://problem/4517383> Hide all images used for spacing purpose in AX
* bridge/mac/WebCoreAXObject.mm:
(-[WebCoreAXObject accessibilityIsIgnored]):
Check for one-dimensional image
Check whether rendered image was stretched from one-dimensional file image
2006-08-27 Brady Eidson <beidson@apple.com>
Reviewed by Maciej
......
......@@ -703,7 +703,23 @@ static IntRect boundingBoxRect(RenderObject* obj)
if (m_renderer->isBlockFlow() && m_renderer->childrenInline())
return !static_cast<RenderBlock*>(m_renderer)->firstLineBox() && ![self mouseButtonListener];
return (!m_renderer->isListMarker() && !m_renderer->isRenderView() && !m_renderer->isImage());
// ignore images seemingly used as spacers
if (m_renderer->isImage()) {
// check for one-dimensional image
if (m_renderer->height() <= 1 || m_renderer->width() <= 1)
return YES;
// check whether rendered image was stretched from one-dimensional file image
RenderImage* image = static_cast<RenderImage*>(m_renderer);
if (image->cachedImage()) {
IntSize imageSize = image->cachedImage()->imageSize();
return (imageSize.height() <= 1 || imageSize.width() <= 1);
}
return NO;
}
return (!m_renderer->isListMarker() && !m_renderer->isRenderView());
}
- (NSArray*)accessibilityAttributeNames
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment