[webkit-changes] [WebKit/WebKit] 62ac47: [content-visibility] Return up-to-date values when...

Rob Buis noreply at github.com
Wed Aug 30 04:38:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 62ac47b3f30726c721604c32f1d4479873655020
      https://github.com/WebKit/WebKit/commit/62ac47b3f30726c721604c32f1d4479873655020
  Author: Rob Buis <rbuis at igalia.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/auto-012-expected.txt
    M LayoutTests/platform/mac-wk1/TestExpectations
    M Source/WebCore/dom/Document.cpp

  Log Message:
  -----------
  [content-visibility] Return up-to-date values when script asks for metrics
https://bugs.webkit.org/show_bug.cgi?id=259730

Reviewed by Alan Baradlay.

Return up-to-date values when script asks for metrics when using
API (like getBoundingClientRect()) that needs to measure layout, rather
than waiting for the step in "update the rendering" [1].

This matches the gecko implementation whereas chromium uses a
"whitelist" solution, needing to adjust many call sites.

[1] https://drafts.csswg.org/css-contain/#cv-notes (Step 3)

* LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/auto-012-expected.txt:
* LayoutTests/platform/mac-wk1/TestExpectations:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::updateLayoutIgnorePendingStylesheets):
(WebCore::Document::updateLayoutIfDimensionsOutOfDate):

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




More information about the webkit-changes mailing list