⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286595 in webkit


Ignore:
Timestamp:
Dec 7, 2021, 3:36:58 AM (5 years ago)
Author:
cathiechen
Message:

[Performance test][css-contain] Add test large-grid.html
https://bugs.webkit.org/show_bug.cgi?id=233628

Reviewed by Rob Buis.

This test large-grid.html is imported from Chromium, and we change it a little bit.
This case tests the performance of getting gridContainer.offsetHeight which is the parent of
a large grid with contain: strict. The performance is improved when enable CSS contain,
because offsetHeight returns the value directly if the element doesn't need relayout, see
Document::updateLayoutIfDimensionsOutOfDate. contain: strict sets a relayout boundary to
the large grid, so when its subtree changes, the container of the large grid doesn't need
relayout.

  • Layout/large-grid.html: Added.
Location:
trunk/PerformanceTests
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/ChangeLog

    r286562 r286595  
     12021-12-07  Cathie Chen  <cathiechen@igalia.com>
     2
     3        [Performance test][css-contain] Add test large-grid.html
     4        https://bugs.webkit.org/show_bug.cgi?id=233628
     5
     6        Reviewed by Rob Buis.
     7
     8        This test large-grid.html is imported from Chromium, and we change it a little bit.
     9        This case tests the performance of getting gridContainer.offsetHeight which is the parent of
     10        a large grid with `contain: strict`. The performance is improved when enable CSS contain,
     11        because offsetHeight returns the value directly if the element doesn't need relayout, see
     12        `Document::updateLayoutIfDimensionsOutOfDate`. `contain: strict` sets a relayout boundary to
     13        the large grid, so when its subtree changes, the container of the large grid doesn't need
     14        relayout.
     15
     16        * Layout/large-grid.html: Added.
     17
    1182021-12-06  Zan Dobersek  <zdobersek@igalia.com>
    219
Note: See TracChangeset for help on using the changeset viewer.