Changeset 126908 in webkit


Ignore:
Timestamp:
Aug 28, 2012 12:05:43 PM (12 years ago)
Author:
dmazzoni@google.com
Message:

AX: Should be able to tab to focus a link in a canvas subtree
https://bugs.webkit.org/show_bug.cgi?id=94967

Reviewed by Chris Fleizach.

Source/WebCore:

Skips the hasNonEmptyBoundingBox check in isKeyboardFocusable
when in a canvas subtree.

Test: fast/events/tab-focus-link-in-canvas.html

  • html/HTMLAnchorElement.cpp:

(WebCore::HTMLAnchorElement::isKeyboardFocusable):

LayoutTests:

Adds a test to make sure you can tab to a link inside a canvas
subtree.

  • fast/events/tab-focus-link-in-canvas-expected.txt: Added.
  • fast/events/tab-focus-link-in-canvas.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r126904 r126908  
     12012-08-28  Dominic Mazzoni  <dmazzoni@google.com>
     2
     3        AX: Should be able to tab to focus a link in a canvas subtree
     4        https://bugs.webkit.org/show_bug.cgi?id=94967
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Adds a test to make sure you can tab to a link inside a canvas
     9        subtree.
     10
     11        * fast/events/tab-focus-link-in-canvas-expected.txt: Added.
     12        * fast/events/tab-focus-link-in-canvas.html: Added.
     13
    1142012-08-28  Philip Rogers  <pdr@google.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r126907 r126908  
     12012-08-28  Dominic Mazzoni  <dmazzoni@google.com>
     2
     3        AX: Should be able to tab to focus a link in a canvas subtree
     4        https://bugs.webkit.org/show_bug.cgi?id=94967
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Skips the hasNonEmptyBoundingBox check in isKeyboardFocusable
     9        when in a canvas subtree.
     10
     11        Test: fast/events/tab-focus-link-in-canvas.html
     12
     13        * html/HTMLAnchorElement.cpp:
     14        (WebCore::HTMLAnchorElement::isKeyboardFocusable):
     15
    1162012-08-28  Koji Ishii  <kojiishi@gmail.com>
    217
  • trunk/Source/WebCore/html/HTMLAnchorElement.cpp

    r124538 r126908  
    114114    if (!document()->frame()->eventHandler()->tabsToLinks(event))
    115115        return false;
     116
     117    if (isInCanvasSubtree())
     118        return true;
    116119
    117120    return hasNonEmptyBoundingBox();
Note: See TracChangeset for help on using the changeset viewer.