Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e39ba8bbd23c8b2d6c0166ce1ec6eb3ac4dd9b7a
      
https://github.com/WebKit/WebKit/commit/e39ba8bbd23c8b2d6c0166ce1ec6eb3ac4dd9b7a
  Author: Anuj Panta <[email protected]>
  Date:   2026-07-03 (Fri, 03 Jul 2026)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js

  Log Message:
  -----------
  Web Inspector: FrameDOMAgent inline style invalidation issues one 
DOM.getAttributes command per node instead of batching per tick
https://bugs.webkit.org/show_bug.cgi?id=316416
rdar://178830496

Reviewed by Qianlang Chen.

_frameTargetInlineStyleInvalidated fired one DOM.getAttributes command per
invalidated node, every tick. Mirror the page-target _inlineStyleInvalidated:
accumulate the node IDs and flush once per tick via a deferred callback.

The page target keeps this state on the manager; frame targets need it
per-target since node IDs are scoped (targetId:nodeId) and each frame has its
own DOMAgent, so attributeLoadNodeIds/loadNodeAttributesTimeout live on the
per-target record. Unlike the page target, a frame can be torn down mid-tick,
so _cleanupFrameTarget cancels any pending flush.

* Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js:
(WI.DOMManager.prototype._initializeFrameTarget):
(WI.DOMManager.prototype._cleanupFrameTarget):
(WI.DOMManager.prototype._frameTargetInlineStyleInvalidated):
(WI.DOMManager.prototype._loadFrameTargetNodeAttributes):

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



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

Reply via email to