[Webkit-unassigned] [Bug 263327] New: [content-visibility] Optimize lazy layout

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 18 11:37:13 PDT 2023


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

            Bug ID: 263327
           Summary: [content-visibility] Optimize lazy layout
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ntim at apple.com

Lazy layout actually can be slower than normal layout when invoked both on a child and its container at the same time, it invokes 2 or more layouts (or the number of children that layout is queried on + the container). It can be reduced to 1 layout per container at least. I think the code that could be optimized is:

```
        if (context->renderer() && context->renderer()->style().skippedContentReason().has_value())
            context->renderer()->setNeedsLayout();
```

-- 
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/20231018/f6dbea38/attachment.htm>


More information about the webkit-unassigned mailing list