Changeset 183678 in webkit


Ignore:
Timestamp:
May 1, 2015 10:05:51 AM (9 years ago)
Author:
jdiggs@igalia.com
Message:

AX: [ATK] REGRESSION: accessibility/canvas-fallback-content.html now crashes
https://bugs.webkit.org/show_bug.cgi?id=144481

Reviewed by Chris Fleizach.

Canvas fallback content is allowed to be focusable if the canvas is displayed
and visible. Update the style when creating an accessible object for a node in
a canvas subtree and before Element::isFocusable() gets called.

No new tests. The existing, crashing test no longer crashes.

  • accessibility/AXObjectCache.cpp:

(WebCore::AXObjectCache::getOrCreate):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r183677 r183678  
     12015-05-01  Joanmarie Diggs  <jdiggs@igalia.com>
     2
     3        AX: [ATK] REGRESSION: accessibility/canvas-fallback-content.html now crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=144481
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Canvas fallback content is allowed to be focusable if the canvas is displayed
     9        and visible. Update the style when creating an accessible object for a node in
     10        a canvas subtree and before Element::isFocusable() gets called.
     11
     12        No new tests. The existing, crashing test no longer crashes.
     13
     14        * accessibility/AXObjectCache.cpp:
     15        (WebCore::AXObjectCache::getOrCreate):
     16
    1172015-05-01  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Source/WebCore/accessibility/AXObjectCache.cpp

    r183368 r183678  
    398398        return nullptr;
    399399
     400    // Fallback content is only focusable as long as the canvas is displayed and visible.
     401    // Update the style before Element::isFocusable() gets called.
     402    if (inCanvasSubtree)
     403        node->document().updateStyleIfNeeded();
     404
    400405    RefPtr<AccessibilityObject> newObj = createFromNode(node);
    401406
Note: See TracChangeset for help on using the changeset viewer.