Skip to content

Commit

Permalink
Remove containment and container query feature flags
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=259771
rdar://113323967

Reviewed by Tim Nguyen.

These have been enabled by default for a while now.

* LayoutTests/fast/css/contain-invalidate-if-disabled-expected.txt: Removed.
* LayoutTests/fast/css/contain-invalidate-if-disabled.html: Removed.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::CSSParserContext::CSSParserContext):
* Source/WebCore/css/parser/CSSParserImpl.cpp:
(WebCore::CSSParserImpl::consumeContainerRule):
* Tools/DumpRenderTree/TestOptions.cpp:
(WTR::TestOptions::defaults):

Canonical link: https://commits.webkit.org/276247@main
  • Loading branch information
anttijk authored and annevk committed Mar 17, 2024
1 parent b2ec60c commit 6a88bee
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 70 deletions.
14 changes: 0 additions & 14 deletions LayoutTests/fast/css/contain-invalidate-if-disabled-expected.txt

This file was deleted.

20 changes: 0 additions & 20 deletions LayoutTests/fast/css/contain-invalidate-if-disabled.html

This file was deleted.

28 changes: 0 additions & 28 deletions Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -959,34 +959,6 @@ CSSContainIntrinsicSizeEnabled:
WebCore:
default: true

CSSContainerQueriesEnabled:
type: bool
status: stable
category: css
humanReadableName: "CSS Container Queries"
humanReadableDescription: "Enable CSS Container Queries"
defaultValue:
WebKitLegacy:
default: true
WebKit:
default: true
WebCore:
default: true

CSSContainmentEnabled:
type: bool
status: stable
category: css
humanReadableName: "CSS Containment"
humanReadableDescription: "Enable contain CSS property"
defaultValue:
WebKitLegacy:
default: true
WebKit:
default: true
WebCore:
default: true

CSSContentVisibilityEnabled:
type: bool
status: stable
Expand Down
3 changes: 0 additions & 3 deletions Source/WebCore/css/CSSProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6487,7 +6487,6 @@
"codegen-properties": {
"converter": "Contain",
"initial": "initialContainment",
"settings-flag": "cssContainmentEnabled",
"parser-function": "consumeContain",
"parser-grammar-unused": "none | strict | content | [ size || layout || paint ]",
"parser-grammar-unused-reason": "Needs support for '||' groups.",
Expand All @@ -6512,7 +6511,6 @@
},
"container-name": {
"codegen-properties": {
"settings-flag": "cssContainerQueriesEnabled",
"converter": "ContainerName",
"name-for-methods": "ContainerNames",
"parser-function": "consumeContainerName",
Expand All @@ -6531,7 +6529,6 @@
"inline-size"
],
"codegen-properties": {
"settings-flag": "cssContainerQueriesEnabled",
"parser-grammar": "<<values>>"
},
"specification": {
Expand Down
1 change: 0 additions & 1 deletion Source/WebCore/css/parser/CSSParserContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ CSSParserContext::CSSParserContext(CSSParserMode mode, const URL& baseURL)
focusVisibleEnabled = true;
lightDarkEnabled = true;
popoverAttributeEnabled = true;
propertySettings.cssContainmentEnabled = true;
propertySettings.cssInputSecurityEnabled = true;
propertySettings.cssCounterStyleAtRulesEnabled = true;
propertySettings.viewTransitionsEnabled = true;
Expand Down
3 changes: 0 additions & 3 deletions Source/WebCore/css/parser/CSSParserImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1177,9 +1177,6 @@ RefPtr<StyleRuleLayer> CSSParserImpl::consumeLayerRule(CSSParserTokenRange prelu

RefPtr<StyleRuleContainer> CSSParserImpl::consumeContainerRule(CSSParserTokenRange prelude, CSSParserTokenRange block)
{
if (!m_context.propertySettings.cssContainerQueriesEnabled)
return nullptr;

if (prelude.atEnd())
return nullptr;

Expand Down
1 change: 0 additions & 1 deletion Tools/DumpRenderTree/TestOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ const TestFeatures& TestOptions::defaults()
{ "AsyncClipboardAPIEnabled", false },
{ "AttachmentElementEnabled", false },
{ "AttachmentWideLayoutEnabled", false },
{ "CSSContainmentEnabled", false },
{ "CSSCounterStyleAtRuleImageSymbolsEnabled", false },
{ "CSSGradientInterpolationColorSpacesEnabled", true },
{ "CSSGradientPremultipliedAlphaInterpolationEnabled", true },
Expand Down

0 comments on commit 6a88bee

Please sign in to comment.