[webkit-changes] [WebKit/WebKit] 682cdc: [content-visibility] Improve skipped content infor...

Rob Buis noreply at github.com
Tue Aug 22 03:41:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 682cdce8ad3fcb142ee4fbb6709c7706d0b2f142
      https://github.com/WebKit/WebKit/commit/682cdce8ad3fcb142ee4fbb6709c7706d0b2f142
  Author: Rob Buis <rbuis at igalia.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-087-expected.txt
    A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-087.html
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/rendering/RenderObject.cpp
    M Source/WebCore/rendering/style/RenderStyle.h
    M Source/WebCore/rendering/style/RenderStyleInlines.h
    M Source/WebCore/rendering/style/RenderStyleSetters.h
    M Source/WebCore/rendering/style/StyleRareInheritedData.cpp
    M Source/WebCore/rendering/style/StyleRareInheritedData.h
    M Source/WebCore/rendering/updating/RenderTreeUpdater.cpp
    M Source/WebCore/style/StyleAdjuster.cpp

  Log Message:
  -----------
  [content-visibility] Improve skipped content information in RenderStyle
https://bugs.webkit.org/show_bug.cgi?id=259042

Reviewed by Simon Fraser.

Improve skipped content information in RenderStyle because beside the fact that
something is skipped content we also want to know if the skipped content is in
a hidden or auto content-visibility subtree.

* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-087-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-087.html: Added.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::hasFocusableStyle const):
* Source/WebCore/rendering/RenderObject.cpp:
(WebCore::RenderObject::isSkippedContent const):
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/rendering/style/RenderStyleInlines.h:
(WebCore::RenderStyle::effectivePointerEvents const):
(WebCore::RenderStyle::skippedContentReason const):
(WebCore::RenderStyle::effectiveSkippedContent const): Deleted.
* Source/WebCore/rendering/style/RenderStyleSetters.h:
(WebCore::RenderStyle::setEffectiveInert):
(WebCore::RenderStyle::setSkippedContentReason):
(WebCore::RenderStyle::setEffectiveSkippedContent): Deleted.
* Source/WebCore/rendering/style/StyleRareInheritedData.cpp:
(WebCore::StyleRareInheritedData::StyleRareInheritedData):
* Source/WebCore/rendering/style/StyleRareInheritedData.h:
* Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::updateRenderTree):
(WebCore::RenderTreeUpdater::updateElementRenderer):
* Source/WebCore/style/StyleAdjuster.cpp:
(WebCore::Style::Adjuster::adjust const): c-v: hidden overrides auto as relevancy reason

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




More information about the webkit-changes mailing list