Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5fd1ffa68fce4eeeae6c724ec26b957f5ca3eb57
      
https://github.com/WebKit/WebKit/commit/5fd1ffa68fce4eeeae6c724ec26b957f5ca3eb57
  Author: Razvan Caliman <[email protected]>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js

  Log Message:
  -----------
  Web Inspector: Assertion Failed: not reached"rendered" in 
WI.DOMTreeElement.badgeTypeForLayoutFlag()
https://bugs.webkit.org/show_bug.cgi?id=312378
rdar://174834709

Reviewed by Anne van Kesteren and Devin Rousso.

https://commits.webkit.org/310936@main refactored `WI.DOMTreeElement` to 
consolidate creation of badges
per layout flag and added an assertion for an unknown badge type.

There is a layout flag, `WI.DOMNode.LayoutFlag.Rendered`, for which there is no 
badge.
This is used to dim not rendered DOM nodes in the DOM tree, for example 
`display: none` nodes.
The assertion is unintentionally tripped for most nodes in the DOM tree outline 
because they have this flag.

This patch guards for the `WI.DOMNode.LayoutFlag.Rendered` flag
and only creates a badge for supported layout flags.

* Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:
(WI.DOMTreeElement.badgeTypeForLayoutFlag):
(WI.DOMTreeElement.prototype._createBadges):

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



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

Reply via email to