[Webkit-unassigned] [Bug 191176] New: Web Inspector: View: introduce an afterLayout
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 1 16:44:29 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=191176
Bug ID: 191176
Summary: Web Inspector: View: introduce an afterLayout
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: drousso at apple.com
CC: inspector-bugzilla-changes at group.apple.com
The `WI.View` layout system works from a top-down approach, meaning that parents call `layout()` before their children, which can sometimes prevent the parent from querying for values on the child (e.g. `WI.Table` rows or `WI.DataGrid` nodes) as they don't get created until the child calls `layout()`. Inside `WI.View.prototype._layoutSubtree`, we recursively iterate over the entire subtree rooted at the parent and call `layout()` for each view encountered. Since this entire operation is synchronous, we can add an `afterLayout` function that gets called at the end of `WI.View.prototype._layoutSubtree`, meaning that it will get called after all children have `layout()`.
--
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/20181101/9dc44d75/attachment.html>
More information about the webkit-unassigned
mailing list