Title: [292422] trunk/Source/WebCore
- Revision
- 292422
- Author
- [email protected]
- Date
- 2022-04-05 14:27:29 -0700 (Tue, 05 Apr 2022)
Log Message
Make subtrees collapsible in the output of the AXLogger streamSubtree.
https://bugs.webkit.org/show_bug.cgi?id=238829
<rdar://problem/91310566>
Reviewed by Chris Fleizach.
Moved the TextStream::GroupScope from the method logging an individual
object to the method logging the hierarchy. This allows to collapse the
entire subtree rooted at a given object.
* accessibility/AXLogger.cpp:
(WebCore::streamAXCoreObject):
(WebCore::streamSubtree):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (292421 => 292422)
--- trunk/Source/WebCore/ChangeLog 2022-04-05 21:21:43 UTC (rev 292421)
+++ trunk/Source/WebCore/ChangeLog 2022-04-05 21:27:29 UTC (rev 292422)
@@ -1,3 +1,19 @@
+2022-04-05 Andres Gonzalez <[email protected]>
+
+ Make subtrees collapsible in the output of the AXLogger streamSubtree.
+ https://bugs.webkit.org/show_bug.cgi?id=238829
+ <rdar://problem/91310566>
+
+ Reviewed by Chris Fleizach.
+
+ Moved the TextStream::GroupScope from the method logging an individual
+ object to the method logging the hierarchy. This allows to collapse the
+ entire subtree rooted at a given object.
+
+ * accessibility/AXLogger.cpp:
+ (WebCore::streamAXCoreObject):
+ (WebCore::streamSubtree):
+
2022-04-05 Antti Koivisto <[email protected]>
Avoid unnecessary traversal when updating list markers
Modified: trunk/Source/WebCore/accessibility/AXLogger.cpp (292421 => 292422)
--- trunk/Source/WebCore/accessibility/AXLogger.cpp 2022-04-05 21:21:43 UTC (rev 292421)
+++ trunk/Source/WebCore/accessibility/AXLogger.cpp 2022-04-05 21:27:29 UTC (rev 292422)
@@ -564,8 +564,6 @@
void streamAXCoreObject(TextStream& stream, const AXCoreObject& object, const OptionSet<AXStreamOptions>& options)
{
- TextStream::GroupScope groupScope(stream);
-
if (options & AXStreamOptions::ObjectID)
stream << "objectID " << object.objectID();
@@ -611,6 +609,7 @@
stream.increaseIndent();
+ TextStream::GroupScope groupScope(stream);
streamAXCoreObject(stream, *object, options);
for (auto& child : object->children(false))
streamSubtree(stream, child, options);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes