Changeset 139723 in webkit


Ignore:
Timestamp:
Jan 15, 2013 12:30:34 AM (11 years ago)
Author:
rniwa@webkit.org
Message:

platform/mac/accessibility/progressbar.html fails on Mac WK1 and WK2
https://bugs.webkit.org/show_bug.cgi?id=106850

Reviewed by Chris Fleizach.

The bug was caused by some callers of supportsFocus directly calling that of Node.
Fixed the bug by calling HTMLElement's so that the virtual function on Element gets
called as needed.

  • html/HTMLMeterElement.cpp:

(WebCore::HTMLMeterElement::supportsFocus):

  • html/HTMLOutputElement.cpp:

(WebCore::HTMLOutputElement::supportsFocus):

  • html/HTMLProgressElement.cpp:

(WebCore::HTMLProgressElement::supportsFocus):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139714 r139723  
     12013-01-14  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        platform/mac/accessibility/progressbar.html fails on Mac WK1 and WK2
     4        https://bugs.webkit.org/show_bug.cgi?id=106850
     5
     6        Reviewed by Chris Fleizach.
     7
     8        The bug was caused by some callers of supportsFocus directly calling that of Node.
     9        Fixed the bug by calling HTMLElement's so that the virtual function on Element gets
     10        called as needed.
     11
     12        * html/HTMLMeterElement.cpp:
     13        (WebCore::HTMLMeterElement::supportsFocus):
     14        * html/HTMLOutputElement.cpp:
     15        (WebCore::HTMLOutputElement::supportsFocus):
     16        * html/HTMLProgressElement.cpp:
     17        (WebCore::HTMLProgressElement::supportsFocus):
     18
    1192013-01-14  Dima Gorbik  <dgorbik@apple.com>
    220
  • trunk/Source/WebCore/html/HTMLMeterElement.cpp

    r135069 r139723  
    7575bool HTMLMeterElement::supportsFocus() const
    7676{
    77     return Node::supportsFocus() && !disabled();
     77    return HTMLElement::supportsFocus() && !disabled();
    7878}
    7979
  • trunk/Source/WebCore/html/HTMLOutputElement.cpp

    r135069 r139723  
    5959bool HTMLOutputElement::supportsFocus() const
    6060{
    61     return Node::supportsFocus() && !disabled();
     61    return HTMLElement::supportsFocus() && !disabled();
    6262}
    6363
  • trunk/Source/WebCore/html/HTMLProgressElement.cpp

    r139064 r139723  
    9191bool HTMLProgressElement::supportsFocus() const
    9292{
    93     return Node::supportsFocus() && !disabled();
     93    return HTMLElement::supportsFocus() && !disabled();
    9494}
    9595
Note: See TracChangeset for help on using the changeset viewer.