⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 169081 in webkit


Ignore:
Timestamp:
May 19, 2014, 4:37:56 PM (12 years ago)
Author:
Chris Fleizach
Message:

AX: VoiceOver sees the WebArea out of order when topContentInset is used
​https://bugs.webkit.org/show_bug.cgi?id=133091

Reviewed by Simon Fraser.

Source/WebCore:
Modify the scroll view's frame so that it recognizes the content inset.
This is needed so that when VoiceOver sorts elements to create an ordering,
the web area is not ordered at the top of the screen.

Test: platform/mac-wk2/accessibility/content-inset-scrollview-frame.html

  • accessibility/AccessibilityScrollView.cpp:

(WebCore::AccessibilityScrollView::elementRect):

LayoutTests:

  • platform/mac-wk2/accessibility/content-inset-scrollview-frame-expected.txt: Added.
  • platform/mac-wk2/accessibility/content-inset-scrollview-frame.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r169063 r169081  
     12014-05-19  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: VoiceOver sees the WebArea out of order when topContentInset is used
     4        https://bugs.webkit.org/show_bug.cgi?id=133091
     5
     6        Reviewed by Simon Fraser.
     7
     8        * platform/mac-wk2/accessibility/content-inset-scrollview-frame-expected.txt: Added.
     9        * platform/mac-wk2/accessibility/content-inset-scrollview-frame.html: Added.
     10
    1112014-05-19  Simon Fraser  <simon.fraser@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r169065 r169081  
     12014-05-19  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: VoiceOver sees the WebArea out of order when topContentInset is used
     4        https://bugs.webkit.org/show_bug.cgi?id=133091
     5
     6        Reviewed by Simon Fraser.
     7
     8        Modify the scroll view's frame so that it recognizes the content inset.
     9        This is needed so that when VoiceOver sorts elements to create an ordering,
     10        the web area is not ordered at the top of the screen.
     11
     12        Test: platform/mac-wk2/accessibility/content-inset-scrollview-frame.html
     13
     14        * accessibility/AccessibilityScrollView.cpp:
     15        (WebCore::AccessibilityScrollView::elementRect):
     16
    1172014-05-19  Beth Dakin  <bdakin@apple.com>
    218
  • trunk/Source/WebCore/accessibility/AccessibilityScrollView.cpp

    r163586 r169081  
    222222        return LayoutRect();
    223223
    224     return m_scrollView->frameRect();
     224    LayoutRect rect = m_scrollView->frameRect();
     225    rect.setY(rect.y() + m_scrollView->topContentInset());
     226    return rect;
    225227}
    226228
Note: See TracChangeset for help on using the changeset viewer.