[webkit-changes] [WebKit/WebKit] 380d2a: Invalid counters after contain: style

Rob Buis noreply at github.com
Mon Oct 24 23:20:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 380d2a88248a012711decb29534dabf3f43f3a6e
      https://github.com/WebKit/WebKit/commit/380d2a88248a012711decb29534dabf3f43f3a6e
  Author: Rob Buis <rbuis at igalia.com>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/contain-style-counters-005-expected.html
    A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/contain-style-counters-005.html
    M Source/WebCore/rendering/RenderCounter.cpp

  Log Message:
  -----------
  Invalid counters after contain: style
https://bugs.webkit.org/show_bug.cgi?id=246216

Reviewed by Darin Adler.

Add the concept of an enclosing style containment
ancestor to previousInPreOrder and rename the method
to make it clear this is being done.

* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/contain-style-counters-005-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/contain-style-counters-005.html: Added.
* Source/WebCore/rendering/RenderCounter.cpp:
(WebCore::previousInPreOrderRespectingContainment):
(WebCore::findPlaceForCounter):
(WebCore::previousInPreOrder): Deleted.

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




More information about the webkit-changes mailing list