Skip to content

Conversation

rwlbuis
Copy link
Contributor

@rwlbuis rwlbuis commented Aug 9, 2022

fccee31

[content-visibility] Parse and add experimental flag for content-visibility
https://bugs.webkit.org/show_bug.cgi?id=236371

Reviewed by Darin Adler.

Parsing of the content-visibility property according to [1]. This is controlled by
the experimental flag CSSContentVisibilityEnabled.

[1] https://www.w3.org/TR/css-contain-2/#content-visibility

* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-026-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-077-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/inheritance-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/parsing/content-visibility-computed-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/parsing/content-visibility-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/editing/the-hidden-attribute/hidden-ua-stylesheet-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* Source/WebCore/css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::operator ContentVisibility const):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::operator==):
(WebCore::add):
* Source/WebCore/css/parser/CSSParserContext.h:
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::consumeContentVisibility):
(WebCore::CSSPropertyParser::parseSingleValue):
* Source/WebCore/rendering/style/RenderStyle.h:
(WebCore::RenderStyle::contentVisibility const):
(WebCore::RenderStyle::setContentVisibility):
(WebCore::RenderStyle::initialContentVisibility):
* Source/WebCore/rendering/style/RenderStyleConstants.h:
* Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp:
(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
(WebCore::StyleRareNonInheritedData::operator== const):
* Source/WebCore/rendering/style/StyleRareNonInheritedData.h:

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

b064abe

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 🧪 win
✅ 🧪 bindings ✅ 🛠 ios-sim 🛠 mac-debug 🛠 gtk ✅ 🛠 wincairo
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🛠 mac-AS-debug 🧪 gtk-wk2
🧪 api-ios 🧪 api-mac 🧪 api-gtk
✅ 🛠 🧪 jsc ✅ 🛠 tv ✅ 🧪 mac-wk1 ✅ 🛠 jsc-armv7
✅ 🛠 tv-sim ✅ 🧪 mac-wk2 ✅ 🧪 jsc-armv7-tests
✅ 🛠 🧪 merge ✅ 🛠 watch 🧪 mac-AS-debug-wk2 ✅ 🛠 jsc-mips
✅ 🛠 watch-sim ✅ 🧪 mac-wk2-stress ❌ 🧪 jsc-mips-tests

@rwlbuis rwlbuis requested a review from graouts as a code owner August 9, 2022 18:36
@rwlbuis rwlbuis force-pushed the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch from 72a3332 to 18d0aa7 Compare August 9, 2022 18:39
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Aug 9, 2022
@rwlbuis rwlbuis force-pushed the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch from 18d0aa7 to 6fc2a28 Compare August 10, 2022 08:03
@rwlbuis rwlbuis requested a review from smfr August 10, 2022 17:21
@rwlbuis
Copy link
Contributor Author

rwlbuis commented Aug 10, 2022

PTAL( finally all green again!).

@rwlbuis rwlbuis force-pushed the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch from 6fc2a28 to e22475f Compare August 11, 2022 08:26
@rwlbuis rwlbuis changed the title Parse and add experimental flag for content-visibility [content-visibility] Parse and add experimental flag for content-visibility Aug 11, 2022
@rwlbuis rwlbuis force-pushed the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch from e22475f to bd8d9f6 Compare August 12, 2022 09:05
@rwlbuis rwlbuis force-pushed the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch from bd8d9f6 to 602f3a6 Compare August 22, 2022 09:19
@rwlbuis
Copy link
Contributor Author

rwlbuis commented Aug 22, 2022

PTAL( finally all green again!).

Ok, I was wrong before, only today this became green :}

@rwlbuis rwlbuis removed the merging-blocked Applied to prevent a change from being merged label Aug 23, 2022
@rwlbuis rwlbuis force-pushed the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch from 602f3a6 to 399e9c9 Compare August 23, 2022 10:16
@rwlbuis rwlbuis self-assigned this Aug 23, 2022
@rwlbuis rwlbuis added CSS Cascading Style Sheets implementation WebKit Local Build labels Aug 23, 2022
@rwlbuis rwlbuis requested review from darinadler and removed request for graouts August 23, 2022 21:43
@rwlbuis rwlbuis force-pushed the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch from d72ad8a to 6a08ebe Compare August 24, 2022 18:09
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to do this and take advantage of cssValuePool? Should help performance if we can.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, I see how that is more efficient. I went with your original idea, I guess we can implement that idea more in the future.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In new code I think we should use constexpr as well as static for functions like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@rwlbuis rwlbuis force-pushed the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch from 6a08ebe to b064abe Compare August 25, 2022 08:46
1 similar comment
1 similar comment
1 similar comment
1 similar comment
@rwlbuis rwlbuis added the merge-queue Applied to send a pull request to merge-queue label Aug 25, 2022
…bility

https://bugs.webkit.org/show_bug.cgi?id=236371

Reviewed by Darin Adler.

Parsing of the content-visibility property according to [1]. This is controlled by
the experimental flag CSSContentVisibilityEnabled.

[1] https://www.w3.org/TR/css-contain-2/#content-visibility

* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-026-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-077-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/inheritance-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/parsing/content-visibility-computed-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/parsing/content-visibility-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/editing/the-hidden-attribute/hidden-ua-stylesheet-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* Source/WebCore/css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::operator ContentVisibility const):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::operator==):
(WebCore::add):
* Source/WebCore/css/parser/CSSParserContext.h:
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::consumeContentVisibility):
(WebCore::CSSPropertyParser::parseSingleValue):
* Source/WebCore/rendering/style/RenderStyle.h:
(WebCore::RenderStyle::contentVisibility const):
(WebCore::RenderStyle::setContentVisibility):
(WebCore::RenderStyle::initialContentVisibility):
* Source/WebCore/rendering/style/RenderStyleConstants.h:
* Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp:
(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
(WebCore::StyleRareNonInheritedData::operator== const):
* Source/WebCore/rendering/style/StyleRareNonInheritedData.h:

Canonical link: https://commits.webkit.org/253768@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch from b064abe to fccee31 Compare August 25, 2022 10:25
@webkit-commit-queue
Copy link
Collaborator

Committed 253768@main (fccee31): https://commits.webkit.org/253768@main

Reviewed commits have been landed. Closing PR #3158 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit fccee31 into WebKit:main Aug 25, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Aug 25, 2022
webkit-early-warning-system pushed a commit that referenced this pull request Aug 26, 2022
…bility

https://bugs.webkit.org/show_bug.cgi?id=236371

Reviewed by Darin Adler.

Remove some code committed in PR #3158 that is not needed after r252720 landed.

* Source/WebCore/css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::operator==):
(WebCore::add):
* Source/WebCore/css/parser/CSSParserContext.h:
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::parseSingleValue):

Canonical link: https://commits.webkit.org/253821@main
abigailfox pushed a commit to abigailfox/WebKit that referenced this pull request Aug 26, 2022
…bility

https://bugs.webkit.org/show_bug.cgi?id=236371

Reviewed by Darin Adler.

Remove some code committed in PR WebKit#3158 that is not needed after r252720 landed.

* Source/WebCore/css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::operator==):
(WebCore::add):
* Source/WebCore/css/parser/CSSParserContext.h:
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::parseSingleValue):

Canonical link: https://commits.webkit.org/253821@main
@rwlbuis rwlbuis deleted the eng/content-visibility-Parse-and-add-experimental-flag-for-content-visibility branch November 30, 2022 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Cascading Style Sheets implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants