Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d0125fd9c712caabe78fd340c5500e6daf7c143d
      
https://github.com/WebKit/WebKit/commit/d0125fd9c712caabe78fd340c5500e6daf7c143d
  Author: Antti Koivisto <an...@apple.com>
  Date:   2025-08-28 (Thu, 28 Aug 2025)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-mixins/at-function-parsing-expected.txt
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/bindings/js/JSCSSRuleCustom.cpp
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/StyleRule.cpp
    A Source/WebCore/css/StyleRuleFunction.cpp
    A Source/WebCore/css/StyleRuleFunction.h
    M Source/WebCore/css/StyleRuleType.h
    M Source/WebCore/css/StyleSheetContents.cpp
    M Source/WebCore/css/parser/CSSAtRuleID.cpp
    M Source/WebCore/css/parser/CSSAtRuleID.h
    M Source/WebCore/css/parser/CSSCustomPropertySyntax.cpp
    M Source/WebCore/css/parser/CSSCustomPropertySyntax.h
    M Source/WebCore/css/parser/CSSParser.cpp
    M Source/WebCore/css/parser/CSSParser.h
    M Source/WebCore/inspector/InspectorStyleSheet.cpp
    M Source/WebCore/style/RuleSetBuilder.cpp

  Log Message:
  -----------
  [css-mixins-1] Parse @function parameters
https://bugs.webkit.org/show_bug.cgi?id=298027
rdar://159352694

Reviewed by Alan Baradlay and Sam Weinig.

Initial parsing support for https://www.w3.org/TR/css-mixins-1/#function-rule

Also add a setting for the feature, disabled by default.

* LayoutTests/TestExpectations:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-mixins/at-function-parsing-expected.txt:
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/JSCSSRuleCustom.cpp:
(WebCore::toJSNewlyCreated):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/StyleRule.cpp:
(WebCore::StyleRuleBase::visitDerived):
(WebCore::StyleRuleBase::createCSSOMWrapper const):
* Source/WebCore/css/StyleRuleFunction.cpp: Added.
(WebCore::StyleRuleFunction::create):
(WebCore::StyleRuleFunction::StyleRuleFunction):
(WebCore::StyleRuleFunctionDeclarations::StyleRuleFunctionDeclarations):
* Source/WebCore/css/StyleRuleFunction.h: Added.
(WebCore::StyleRuleFunctionDeclarations::create):
(WebCore::StyleRuleFunctionDeclarations::copy const):
(WebCore::StyleRuleFunctionDeclarations::properties const):
(isType):
* Source/WebCore/css/StyleRuleType.h:
* Source/WebCore/css/StyleSheetContents.cpp:
(WebCore::StyleSheetContents::traverseSubresources const):
(WebCore::StyleSheetContents::mayDependOnBaseURL const):
* Source/WebCore/css/parser/CSSAtRuleID.cpp:
(WebCore::cssAtRuleID):
* Source/WebCore/css/parser/CSSAtRuleID.h:
* Source/WebCore/css/parser/CSSCustomPropertySyntax.cpp:
(WebCore::CSSCustomPropertySyntax::consumeType):
(WebCore::CSSCustomPropertySyntax::containsUnknownType const):
* Source/WebCore/css/parser/CSSCustomPropertySyntax.h:
* Source/WebCore/css/parser/CSSParser.cpp:
(WebCore::CSSParser::consumeAtRule):
(WebCore::CSSParser::consumeFunctionRule):
* Source/WebCore/css/parser/CSSParser.h:
* Source/WebCore/inspector/InspectorStyleSheet.cpp:
(WebCore::flatteningStrategyForStyleRuleType):
* Source/WebCore/style/RuleSetBuilder.cpp:
(WebCore::Style::RuleSetBuilder::addChildRule):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to