Diff
Modified: releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog (195117 => 195118)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog 2016-01-15 11:32:29 UTC (rev 195117)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog 2016-01-15 11:34:05 UTC (rev 195118)
@@ -1,3 +1,18 @@
+2015-12-09 Joanmarie Diggs <[email protected]>
+
+ AX: [GTK] Anonymous render block flow elements should be exposed as ATK_ROLE_SECTION; not ATK_ROLE_PANEL
+ https://bugs.webkit.org/show_bug.cgi?id=152070
+
+ Reviewed by Mario Sanchez Prada.
+
+ * platform/gtk/accessibility/deleting-iframe-destroys-axcache-expected.txt: Added.
+ * platform/gtk/accessibility/gtk/media-controls-panel-title-expected.txt: Added.
+ * platform/gtk/accessibility/gtk/replaced-objects-in-anonymous-blocks-expected.txt: Added.
+ * platform/gtk/accessibility/image-link-expected.txt: Updated
+ * platform/gtk/accessibility/image-with-alt-and-map-expected.txt: Updated.
+ * platform/gtk/accessibility/lists-expected.txt: Updated.
+ * platform/gtk/accessibility/media-emits-object-replacement-expected.txt: Updated.
+
2015-12-09 Frederic Wang <[email protected]>
Bad position of large operators inside an munderover element
Modified: releases/WebKitGTK/webkit-2.10/LayoutTests/accessibility/gtk/image-link-expected.txt (195117 => 195118)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/accessibility/gtk/image-link-expected.txt 2016-01-15 11:32:29 UTC (rev 195117)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/accessibility/gtk/image-link-expected.txt 2016-01-15 11:34:05 UTC (rev 195118)
@@ -4,7 +4,7 @@
AXRole: AXLink
-AXParent: AXGroup
+AXParent: AXSection
AXChildren: 1
AXPosition: { 8.000000, 98.000000 }
AXSize: { 280.000000, 213.000000 }
Modified: releases/WebKitGTK/webkit-2.10/LayoutTests/accessibility/gtk/image-with-alt-and-map-expected.txt (195117 => 195118)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/accessibility/gtk/image-with-alt-and-map-expected.txt 2016-01-15 11:32:29 UTC (rev 195117)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/accessibility/gtk/image-with-alt-and-map-expected.txt 2016-01-15 11:34:05 UTC (rev 195118)
@@ -6,7 +6,7 @@
AXRole: AXWebArea AXTitle: AXDescription:
- AXRole: AXGroup AXTitle: AXDescription:
+ AXRole: AXSection AXTitle: AXDescription:
AXRole: AXImageMap AXTitle: foo bar baz AXDescription: foo bar baz
AXRole: AXLink AXTitle: foo AXDescription: foo
AXRole: AXLink AXTitle: bar AXDescription: bar
Modified: releases/WebKitGTK/webkit-2.10/LayoutTests/accessibility/gtk/lists-expected.txt (195117 => 195118)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/accessibility/gtk/lists-expected.txt 2016-01-15 11:32:29 UTC (rev 195117)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/accessibility/gtk/lists-expected.txt 2016-01-15 11:34:05 UTC (rev 195118)
@@ -65,7 +65,7 @@
AXChecked: 0
AXPlatformAttributes: tag:dl, toolkit:WebKitGtk
------------
-AXRole: AXGroup
+AXRole: AXSection
AXParent: AXWebArea
AXChildren: 0
AXPosition: { 8.000000, 217.000000 }
@@ -82,7 +82,7 @@
AXExpanded: 0
AXRequired: 0
AXChecked: 0
-AXPlatformAttributes: computed-role:group, toolkit:WebKitGtk
+AXPlatformAttributes: toolkit:WebKitGtk
------------
Added: releases/WebKitGTK/webkit-2.10/LayoutTests/platform/gtk/accessibility/deleting-iframe-destroys-axcache-expected.txt (0 => 195118)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/platform/gtk/accessibility/deleting-iframe-destroys-axcache-expected.txt (rev 0)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/platform/gtk/accessibility/deleting-iframe-destroys-axcache-expected.txt 2016-01-15 11:34:05 UTC (rev 195118)
@@ -0,0 +1,42 @@
+Before
+
+After
+
+End of test
+
+This tests that deleting an iframe doesn't cause the accessibility cache to be destroyed and recreated.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+Before:
+AXRole: AXScrollArea
+ AXRole: AXWebArea
+ AXRole: AXParagraph AXValue: Before
+ AXRole: AXSection AXValue: <obj>
+ AXRole: AXGroup
+ AXRole: AXScrollArea
+ AXRole: AXWebArea
+ AXRole: AXGroup AXValue: <obj>
+ AXRole: AXButton
+ AXRole: AXParagraph AXValue: After
+ AXRole: AXParagraph AXValue: End of test
+
+After:
+AXRole: AXScrollArea
+ AXRole: AXWebArea
+ AXRole: AXParagraph AXValue: Before
+ AXRole: AXParagraph AXValue: After
+ AXRole: AXParagraph AXValue: End of test
+
+PASS frameBodyRole == frameBody.role is false
+PASS frameGroupRole == frameGroup.role is false
+PASS frameButtonRole == frameButton.role is false
+PASS root.isEqual(newRoot) is true
+PASS body.isEqual(newBody) is true
+PASS before.isEqual(newBefore) is true
+PASS after.isEqual(newAfter) is true
+
+TEST COMPLETE
+
Added: releases/WebKitGTK/webkit-2.10/LayoutTests/platform/gtk/accessibility/gtk/media-controls-panel-title-expected.txt (0 => 195118)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/platform/gtk/accessibility/gtk/media-controls-panel-title-expected.txt (rev 0)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/platform/gtk/accessibility/gtk/media-controls-panel-title-expected.txt 2016-01-15 11:34:05 UTC (rev 195118)
@@ -0,0 +1,20 @@
+
+This tests that the media controls panel has the correct name and role
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+FAIL mainBlock.role should be AXRole: AXGroup. Was AXRole: AXSection.
+PASS mainBlock.title is 'AXTitle: '
+PASS element.role is 'AXRole: AXVideo'
+PASS element.title is 'AXTitle: '
+PASS element.role is 'AXRole: AXToolbar'
+PASS element.title is 'AXTitle: Video Playback'
+PASS element.role is 'AXRole: AXAudio'
+PASS element.title is 'AXTitle: '
+PASS element.role is 'AXRole: AXToolbar'
+PASS element.title is 'AXTitle: Audio Playback'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: releases/WebKitGTK/webkit-2.10/LayoutTests/platform/gtk/accessibility/gtk/replaced-objects-in-anonymous-blocks-expected.txt (0 => 195118)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/platform/gtk/accessibility/gtk/replaced-objects-in-anonymous-blocks-expected.txt (rev 0)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/platform/gtk/accessibility/gtk/replaced-objects-in-anonymous-blocks-expected.txt 2016-01-15 11:34:05 UTC (rev 195118)
@@ -0,0 +1,37 @@
+Paragraph
+
+button
+
+
+Div
+button
+Heading
+button
+
+
+End of test
+AXRole: AXWebArea
+ AXRole: AXParagraph AXValue: Paragraph
+ AXRole: AXSection AXValue: <obj>
+ AXRole: AXButton
+ AXRole: AXSection AXValue: <obj>
+ AXRole: AXGroup
+ AXRole: AXScrollArea
+ AXRole: AXWebArea
+ AXRole: AXSection AXValue: <obj>
+ AXRole: AXTextField AXValue: text area
+ AXRole: AXSection AXValue: Div<\n><obj>
+ AXRole: AXButton
+ AXRole: AXHeading AXValue: Heading<\n><obj><\n><obj>
+ AXRole: AXButton
+ AXRole: AXImage
+ AXRole: AXSection AXValue: End of test
+This tests that the text associated with replaced objects in an anonymous block is correct.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Modified: releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog (195117 => 195118)
--- releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog 2016-01-15 11:32:29 UTC (rev 195117)
+++ releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog 2016-01-15 11:34:05 UTC (rev 195118)
@@ -1,3 +1,20 @@
+2015-12-09 Joanmarie Diggs <[email protected]>
+
+ AX: [GTK] Anonymous render block flow elements should be exposed as ATK_ROLE_SECTION; not ATK_ROLE_PANEL
+ https://bugs.webkit.org/show_bug.cgi?id=152070
+
+ Reviewed by Mario Sanchez Prada.
+
+ Map the element to WebCore AccessibilityRole DivRole for GTK. This is being
+ done in the shared layer rather than in the platform layer because we want all
+ subsequent logic to treat anonymous render block flow elements as divs.
+
+ No new tests. We already have sufficient test coverage. The expectations
+ been updated accordingly.
+
+ * accessibility/AccessibilityRenderObject.cpp:
+ (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
+
2015-12-09 Keith Rollin <[email protected]>
form.elements should reflect the element ordering after the HTML tree builder algorithm
Modified: releases/WebKitGTK/webkit-2.10/Source/WebCore/accessibility/AccessibilityRenderObject.cpp (195117 => 195118)
--- releases/WebKitGTK/webkit-2.10/Source/WebCore/accessibility/AccessibilityRenderObject.cpp 2016-01-15 11:32:29 UTC (rev 195117)
+++ releases/WebKitGTK/webkit-2.10/Source/WebCore/accessibility/AccessibilityRenderObject.cpp 2016-01-15 11:34:05 UTC (rev 195118)
@@ -2705,13 +2705,20 @@
return LandmarkBannerRole;
if (node && node->hasTagName(footerTag) && !isDescendantOfElementType(articleTag) && !isDescendantOfElementType(sectionTag))
return FooterRole;
-
- if (m_renderer->isRenderBlockFlow())
- return GroupRole;
// If the element does not have role, but it has ARIA attributes, or accepts tab focus, accessibility should fallback to exposing it as a group.
if (supportsARIAAttributes() || canSetFocusAttribute())
return GroupRole;
+
+ if (m_renderer->isRenderBlockFlow()) {
+#if PLATFORM(GTK)
+ // For ATK, GroupRole maps to ATK_ROLE_PANEL. Panels are most commonly found (and hence
+ // expected) in UI elements; not text blocks.
+ return m_renderer->isAnonymousBlock() ? DivRole : GroupRole;
+#else
+ return GroupRole;
+#endif
+ }
// InlineRole is the final fallback before assigning UnknownRole to an object. It makes it
// possible to distinguish truly unknown objects from non-focusable inline text elements