Title: [161966] trunk
- Revision
- 161966
- Author
- [email protected]
- Date
- 2014-01-14 07:45:32 -0800 (Tue, 14 Jan 2014)
Log Message
[ATK] AXChildrenChanged notification handling is a performance black hole
https://bugs.webkit.org/show_bug.cgi?id=126970
Reviewed by Gustavo Noronha Silva.
Source/WebCore:
Remove code that is causing a huge performance problem when
loading big pages, just to be able to emit the children-changed:add
signal at the exact time a child is added.
This removal does not imply that the signal won't be ever emitted,
just that it will be emitted a bit later (when the new child is
asynchronously added to the tree), which should be good enough
anyway for Accessible Technologies, without impacting perfformance
in such a negative way.
* accessibility/atk/AXObjectCacheAtk.cpp:
(WebCore::AXObjectCache::postPlatformNotification): Removed
extremely expensive referring loop when AXChildrenChanged is received.
LayoutTests:
Because of the removal of the referring test when
AXChildrenChanged is received, the children-changed:add signal is
now emitted later, so we need to reorder the expectations.
* accessibility/children-changed-sends-notification-expected.txt: Updated.
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (161965 => 161966)
--- trunk/LayoutTests/ChangeLog 2014-01-14 15:41:32 UTC (rev 161965)
+++ trunk/LayoutTests/ChangeLog 2014-01-14 15:45:32 UTC (rev 161966)
@@ -1,3 +1,16 @@
+2014-01-14 Mario Sanchez Prada <[email protected]>
+
+ [ATK] AXChildrenChanged notification handling is a performance black hole
+ https://bugs.webkit.org/show_bug.cgi?id=126970
+
+ Reviewed by Gustavo Noronha Silva.
+
+ Because of the removal of the referring test when
+ AXChildrenChanged is received, the children-changed:add signal is
+ now emitted later, so we need to reorder the expectations.
+
+ * accessibility/children-changed-sends-notification-expected.txt: Updated.
+
2014-01-14 Mihai Tica <[email protected]>
[CSS Background Blending] Background layer with -webkit-cross-fade doesn't blend
Modified: trunk/LayoutTests/accessibility/children-changed-sends-notification-expected.txt (161965 => 161966)
--- trunk/LayoutTests/accessibility/children-changed-sends-notification-expected.txt 2014-01-14 15:41:32 UTC (rev 161965)
+++ trunk/LayoutTests/accessibility/children-changed-sends-notification-expected.txt 2014-01-14 15:45:32 UTC (rev 161966)
@@ -6,10 +6,10 @@
Plain text paragraph
End of test
+PARAGRAPH notification: AXChildrenRemoved
+GLOBAL notification: AXChildrenRemoved on element with role AXRole: AXParagraph
PARAGRAPH notification: AXChildrenAdded
GLOBAL notification: AXChildrenAdded on element with role AXRole: AXParagraph
-PARAGRAPH notification: AXChildrenRemoved
-GLOBAL notification: AXChildrenRemoved on element with role AXRole: AXParagraph
PASS paragraphNotificationCount is globalNotificationCount
PASS globalNotificationCount is 2
PASS successfullyParsed is true
Modified: trunk/Source/WebCore/ChangeLog (161965 => 161966)
--- trunk/Source/WebCore/ChangeLog 2014-01-14 15:41:32 UTC (rev 161965)
+++ trunk/Source/WebCore/ChangeLog 2014-01-14 15:45:32 UTC (rev 161966)
@@ -1,3 +1,24 @@
+2014-01-14 Mario Sanchez Prada <[email protected]>
+
+ [ATK] AXChildrenChanged notification handling is a performance black hole
+ https://bugs.webkit.org/show_bug.cgi?id=126970
+
+ Reviewed by Gustavo Noronha Silva.
+
+ Remove code that is causing a huge performance problem when
+ loading big pages, just to be able to emit the children-changed:add
+ signal at the exact time a child is added.
+
+ This removal does not imply that the signal won't be ever emitted,
+ just that it will be emitted a bit later (when the new child is
+ asynchronously added to the tree), which should be good enough
+ anyway for Accessible Technologies, without impacting perfformance
+ in such a negative way.
+
+ * accessibility/atk/AXObjectCacheAtk.cpp:
+ (WebCore::AXObjectCache::postPlatformNotification): Removed
+ extremely expensive referring loop when AXChildrenChanged is received.
+
2014-01-14 Mihai Tica <[email protected]>
[CSS Background Blending] Background layer with -webkit-cross-fade doesn't blend
Modified: trunk/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp (161965 => 161966)
--- trunk/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp 2014-01-14 15:41:32 UTC (rev 161965)
+++ trunk/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp 2014-01-14 15:45:32 UTC (rev 161966)
@@ -193,16 +193,6 @@
atk_object_notify_state_change(axObject, ATK_STATE_CHECKED, coreObject->isChecked());
break;
- case AXChildrenChanged:
- // We need to make sure that the children AtkObjects are created at this moment,
- // so the children-changed::add signal gets properly emitted in attachWrapper().
- {
- int numOfChildren = atk_object_get_n_accessible_children(axObject);
- for (int i = 0; i < numOfChildren; ++i)
- GRefPtr<AtkObject> child(atk_object_ref_accessible_child(axObject, i));
- }
- break;
-
case AXSelectedChildrenChanged:
case AXMenuListValueChanged:
if (notification == AXMenuListValueChanged && coreObject->isMenuList()) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes