Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e31e65e5fde4ff1a653d86ed8334d70f440ea8ac
      
https://github.com/WebKit/WebKit/commit/e31e65e5fde4ff1a653d86ed8334d70f440ea8ac
  Author: Simon Fraser <[email protected]>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/dom/Element.h
    M Source/WebCore/rendering/RenderLayer.cpp
    M Source/WebCore/rendering/RenderObject.cpp

  Log Message:
  -----------
  Include Element attributes in render tree output
https://bugs.webkit.org/show_bug.cgi?id=295248
rdar://154712771

Reviewed by Alan Baradlay.

When using `showRenderTree()` it's helpful to see element classnames and
ids to match renderers to elements.

Add `Element::Element::attributesForDescription()`, and call it from
`RenderObject::outputRenderObject()`.

* Source/WebCore/dom/Element.cpp:
(WebCore::Element::attributesForDescription const):
* Source/WebCore/dom/Element.h:
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::outputIndent): Typo fix
(WebCore::outputPaintOrderTreeRecursive):
(WebCore::outputLayerPositionTreeRecursive):
(WebCore::outputIdent): Deleted.
* Source/WebCore/rendering/RenderObject.cpp:
(WebCore::RenderObject::outputRenderObject const):

Canonical link: https://commits.webkit.org/296849@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to