[webkit-changes] [WebKit/WebKit] 5b575f: [content-visibility] Add support for ContentVisibi...
Rob Buis
noreply at github.com
Sun Aug 27 22:49:23 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5b575ff841de2b2490b8707d303e068c48641e93
https://github.com/WebKit/WebKit/commit/5b575ff841de2b2490b8707d303e068c48641e93
Author: Rob Buis <rbuis at igalia.com>
Date: 2023-08-27 (Sun, 27 Aug 2023)
Changed paths:
M LayoutTests/TestExpectations
M LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-auto-state-changed-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-auto-state-changed-first-observation-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-auto-state-changed-removed-expected.txt
M Source/WebCore/CMakeLists.txt
M Source/WebCore/DerivedSources-input.xcfilelist
M Source/WebCore/DerivedSources-output.xcfilelist
M Source/WebCore/DerivedSources.make
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/bindings/js/WebCoreBuiltinNames.h
A Source/WebCore/dom/ContentVisibilityAutoStateChangeEvent.cpp
A Source/WebCore/dom/ContentVisibilityAutoStateChangeEvent.h
A Source/WebCore/dom/ContentVisibilityAutoStateChangeEvent.idl
M Source/WebCore/dom/ContentVisibilityDocumentState.cpp
M Source/WebCore/dom/Document.cpp
M Source/WebCore/dom/Element.cpp
M Source/WebCore/dom/Element.h
M Source/WebCore/dom/ElementRareData.h
M Source/WebCore/dom/EventNames.h
M Source/WebCore/dom/EventNames.in
M Source/WebCore/dom/GlobalEventHandlers.idl
M Source/WebCore/html/HTMLAttributeNames.in
Log Message:
-----------
[content-visibility] Add support for ContentVisibilityAutoStateChangeEvent
https://bugs.webkit.org/show_bug.cgi?id=258880
Reviewed by Tim Nguyen.
Support ContentVisibilityAutoStateChangeEvent, see:
https://drafts.csswg.org/css-contain/#content-visibility-auto-state-change
* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-auto-state-changed-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-auto-state-changed-first-observation-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-auto-state-changed-removed-expected.txt: Added.
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/WebCoreBuiltinNames.h:
* Source/WebCore/dom/ContentVisibilityAutoStateChangeEvent.cpp: Added.
(WebCore::ContentVisibilityAutoStateChangeEvent::ContentVisibilityAutoStateChangeEvent):
* Source/WebCore/dom/ContentVisibilityAutoStateChangeEvent.h: Added.
* Source/WebCore/dom/ContentVisibilityAutoStateChangeEvent.idl: Added.
* Source/WebCore/dom/ContentVisibilityDocumentState.cpp:
(WebCore::ContentVisibilityDocumentState::updateRelevancyOfContentVisibilityElements):
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::updateRelevancyOfContentVisibilityElements): bail out early if no update is specified
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::isRelevantToUser const):
(WebCore::Element::contentRelevancy const):
* Source/WebCore/dom/Element.h:
* Source/WebCore/dom/ElementRareData.h:
(WebCore::ElementRareData::contentRelevancy const):
* Source/WebCore/dom/EventNames.h:
* Source/WebCore/dom/EventNames.in:
* Source/WebCore/dom/GlobalEventHandlers.idl:
* Source/WebCore/html/HTMLAttributeNames.in:
Canonical link: https://commits.webkit.org/267340@main
More information about the webkit-changes
mailing list