Skip to content

Commit

Permalink
Remove OverflowClipEnabled preference
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=265347
rdar://118800232

Reviewed by Darin Adler.

overflow: clip; has shipped for more than a year and has become an essential part of the web platform.

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::add):
* Source/WebCore/css/parser/CSSParserContext.h:

Canonical link: https://commits.webkit.org/271140@main
  • Loading branch information
nt1m committed Nov 27, 2023
1 parent b2410e3 commit a75ab92
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 39 deletions.
14 changes: 0 additions & 14 deletions Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4779,20 +4779,6 @@ OpusDecoderEnabled:
WebKit:
default: true

OverflowClipEnabled:
type: bool
status: stable
category: css
humanReadableName: "CSS overflow: clip support"
humanReadableDescription: "Enable CSS overflow: clip support"
defaultValue:
WebKitLegacy:
default: true
WebKit:
default: true
WebCore:
default: true

OverscrollBehaviorEnabled:
type: bool
status: stable
Expand Down
10 changes: 2 additions & 8 deletions Source/WebCore/css/CSSProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4936,10 +4936,7 @@
"values": [
"visible",
"hidden",
{
"value": "clip",
"settings-flag": "overflowClipEnabled"
},
"clip",
"scroll",
"auto",
{
Expand All @@ -4959,10 +4956,7 @@
"values": [
"visible",
"hidden",
{
"value": "clip",
"settings-flag": "overflowClipEnabled"
},
"clip",
"scroll",
"auto",
{
Expand Down
30 changes: 14 additions & 16 deletions Source/WebCore/css/parser/CSSParserContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ CSSParserContext::CSSParserContext(const Document& document, const URL& sheetBas
, focusVisibleEnabled { document.settings().focusVisibleEnabled() }
, hasPseudoClassEnabled { document.settings().hasPseudoClassEnabled() }
, cascadeLayersEnabled { document.settings().cssCascadeLayersEnabled() }
, overflowClipEnabled { document.settings().overflowClipEnabled() }
, gradientPremultipliedAlphaInterpolationEnabled { document.settings().cssGradientPremultipliedAlphaInterpolationEnabled() }
, gradientInterpolationColorSpacesEnabled { document.settings().cssGradientInterpolationColorSpacesEnabled() }
, subgridEnabled { document.settings().subgridEnabled() }
Expand Down Expand Up @@ -128,21 +127,20 @@ void add(Hasher& hasher, const CSSParserContext& context)
| context.focusVisibleEnabled << 11
| context.hasPseudoClassEnabled << 12
| context.cascadeLayersEnabled << 13
| context.overflowClipEnabled << 14
| context.gradientPremultipliedAlphaInterpolationEnabled << 15
| context.gradientInterpolationColorSpacesEnabled << 16
| context.subgridEnabled << 17
| context.masonryEnabled << 18
| context.cssNestingEnabled << 19
| context.cssPaintingAPIEnabled << 20
| context.cssScopeAtRuleEnabled << 21
| context.cssTextUnderlinePositionLeftRightEnabled << 22
| context.cssWordBreakAutoPhraseEnabled << 23
| context.popoverAttributeEnabled << 24
| context.sidewaysWritingModesEnabled << 25
| context.cssTextWrapPrettyEnabled << 26
| context.highlightAPIEnabled << 27
| (uint64_t)context.mode << 28; // This is multiple bits, so keep it last.
| context.gradientPremultipliedAlphaInterpolationEnabled << 14
| context.gradientInterpolationColorSpacesEnabled << 15
| context.subgridEnabled << 16
| context.masonryEnabled << 17
| context.cssNestingEnabled << 18
| context.cssPaintingAPIEnabled << 19
| context.cssScopeAtRuleEnabled << 20
| context.cssTextUnderlinePositionLeftRightEnabled << 21
| context.cssWordBreakAutoPhraseEnabled << 22
| context.popoverAttributeEnabled << 23
| context.sidewaysWritingModesEnabled << 24
| context.cssTextWrapPrettyEnabled << 25
| context.highlightAPIEnabled << 26
| (uint64_t)context.mode << 27; // This is multiple bits, so keep it last.
add(hasher, context.baseURL, context.charset, context.propertySettings, bits);
}

Expand Down
1 change: 0 additions & 1 deletion Source/WebCore/css/parser/CSSParserContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ struct CSSParserContext {
bool focusVisibleEnabled : 1 { false };
bool hasPseudoClassEnabled : 1 { false };
bool cascadeLayersEnabled : 1 { false };
bool overflowClipEnabled : 1 { false };
bool gradientPremultipliedAlphaInterpolationEnabled : 1 { false };
bool gradientInterpolationColorSpacesEnabled : 1 { false };
bool subgridEnabled : 1 { false };
Expand Down

0 comments on commit a75ab92

Please sign in to comment.