[webkit-changes] [WebKit/WebKit] e61b78: [content-visibility] Add support for selection

Rob Buis noreply at github.com
Wed Aug 30 16:42:14 PDT 2023


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

  Changed paths:
    M LayoutTests/TestExpectations
    M LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-048-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-070-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-071-expected.txt
    M Source/WebCore/dom/ContentVisibilityDocumentState.cpp
    M Source/WebCore/dom/Element.h
    M Source/WebCore/editing/FrameSelection.cpp

  Log Message:
  -----------
  [content-visibility] Add support for selection
https://bugs.webkit.org/show_bug.cgi?id=258194

Reviewed by Tim Nguyen.

Make selection of skipped content a reason to make an element relevant to the user as specified here:
https://drafts.csswg.org/css-contain/#relevant-to-the-user

* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-048-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-070-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-071-expected.txt:
* Source/WebCore/dom/ContentVisibilityDocumentState.cpp:
(WebCore::ContentVisibilityDocumentState::updateRelevancyOfContentVisibilityElements):
* Source/WebCore/dom/Element.h:
* Source/WebCore/editing/FrameSelection.cpp:
(WebCore::FrameSelection::setSelection):

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




More information about the webkit-changes mailing list