[Webkit-unassigned] [Bug 221449] New: Web Inspector: Add `CSS.setGlobalLayoutContextTypeInstrumentationEnabled` for getting information about all layout contexts

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 4 20:03:23 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=221449

            Bug ID: 221449
           Summary: Web Inspector: Add
                    `CSS.setGlobalLayoutContextTypeInstrumentationEnabled`
                    for getting information about all layout contexts
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pangle at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

>From Devin's Review Comment on attachment 419315:
```
As a potential optimization, maybe you could add a `CSS.setGlobalLayoutContextTypeInstrumentationEnabled` that's toggled on inside `WI.LayoutDetailsSidebarPanel.prototype.attached` and off inside `WI.LayoutDetailsSidebarPanel.prototype.detached` which controls whether the `Node` is always instrumented (when toggled on) or if only previously instrumented `Node` are allowed (when toggled off).  This means that until the developer shows the Layout panel, we'd only be getting `CSS.nodeLayoutContextTypeChanged` events for nodes that have been shown in the Elements Tab, which is likely _far_ more performant than if we'd instrumented every potentially viable node.
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210205/57cb9a4a/attachment.htm>


More information about the webkit-unassigned mailing list