Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5cf90e6136c2d55f33d374969946a196e193abb5
      
https://github.com/WebKit/WebKit/commit/5cf90e6136c2d55f33d374969946a196e193abb5
  Author: Vitaly Dyachkov <[email protected]>
  Date:   2026-04-23 (Thu, 23 Apr 2026)

  Changed paths:
    M Source/WebCore/inspector/InspectorInstrumentation.cpp
    M Source/WebCore/inspector/InspectorInstrumentation.h
    M Source/WebCore/inspector/TimelineRecordFactory.cpp
    M Source/WebCore/inspector/TimelineRecordFactory.h
    M Source/WebCore/inspector/agents/page/PageTimelineAgent.cpp
    M Source/WebCore/inspector/agents/page/PageTimelineAgent.h
    M Source/WebCore/page/LocalFrameViewLayoutContext.cpp
    M Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js
    M Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js
    M Source/WebInspectorUI/UserInterface/Views/LayoutTimelineDataGridNode.js

  Log Message:
  -----------
  Web Inspector: Show layout root element
https://bugs.webkit.org/show_bug.cgi?id=312761

Reviewed by Devin Rousso.

Add support for displaying the layout root element for a "Layout" event
in Web Inspector timeline details view.

Reuse exising `WI.LayoutTimelineRecord.domNode` property to store the
layout root element, and show "go to arrow" which provides a button to
jump to the element.

If the layout root element is the document root element, jump to its
first child element.

* Source/WebCore/inspector/InspectorInstrumentation.cpp:
(WebCore::InspectorInstrumentation::didLayoutImpl):
* Source/WebCore/inspector/InspectorInstrumentation.h:
(WebCore::InspectorInstrumentation::didLayout):
* Source/WebCore/inspector/TimelineRecordFactory.cpp:
(WebCore::TimelineRecordFactory::appendLayoutRoot):
* Source/WebCore/inspector/TimelineRecordFactory.h:
* Source/WebCore/inspector/agents/page/PageTimelineAgent.cpp:
(WebCore::PageTimelineAgent::didLayout):
* Source/WebCore/inspector/agents/page/PageTimelineAgent.h:
* Source/WebCore/page/LocalFrameViewLayoutContext.cpp:
(WebCore::LocalFrameViewLayoutContext::performLayout):
* Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:
(WI.TimelineManager.prototype._processRecord):
* Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js:
(WI.DOMTreeOutline.prototype._revealAndSelectNode):
* Source/WebInspectorUI/UserInterface/Views/LayoutTimelineDataGridNode.js:
(WI.LayoutTimelineDataGridNode.prototype.createCellContent):
(WI.LayoutTimelineDataGridNode):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to