Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6955e8112f272d0401cd1861da095015ba37f810
https://github.com/WebKit/WebKit/commit/6955e8112f272d0401cd1861da095015ba37f810
Author: Sam Weinig <[email protected]>
Date: 2024-04-16 (Tue, 16 Apr 2024)
Changed paths:
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/css/ShorthandSerializer.cpp
A Source/WebCore/css/parser/CSSCalcParser.cpp
A Source/WebCore/css/parser/CSSCalcParser.h
M Source/WebCore/css/parser/CSSParserImpl.cpp
M Source/WebCore/css/parser/CSSPropertyParser.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Angle.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Angle.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Ident.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Ident.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Integer.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Integer.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Length.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Length.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+List.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Meta.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+None.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+None.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Number.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Number.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Percent.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Percent.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Resolution.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Resolution.h
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Time.cpp
A Source/WebCore/css/parser/CSSPropertyParserConsumer+Time.h
M Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp
M Source/WebCore/css/parser/CSSPropertyParserHelpers.h
M Source/WebCore/css/parser/CSSPropertyParserWorkerSafe.cpp
M Source/WebCore/css/process-css-properties.py
M Source/WebCore/css/query/GenericMediaQueryParser.cpp
M Source/WebCore/page/IntersectionObserver.cpp
M Source/WebCore/style/StyleBuilderState.h
Log Message:
-----------
[Split CSSPropertyParserHelpers] Part 1: Primitives, Lists, and Color
https://bugs.webkit.org/show_bug.cgi?id=272774
Reviewed by Tim Nguyen.
CSSPropertyParserHelpers.cpp is enormous at 8872 lines long, which
makes it hard to work with and makes compile/fix cycles unwieldily.
This starts the process of breaking it up into logical chunks, starting
with the the primitive consumers that correspond to token types (number,
ident, percent, etc.), lists and color (color weighs in at ~1600 lines
all by itself).
No code changes are being made here, this is purely moving things around.
CSSPropertyParserHelpers.cpp goes from 8872 lines to 5776 lines, that's
3096 lines moved.
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/css/ShorthandSerializer.cpp:
* Source/WebCore/css/parser/CSSCalcParser.cpp: Added.
* Source/WebCore/css/parser/CSSCalcParser.h: Added.
* Source/WebCore/css/parser/CSSParserImpl.cpp:
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Angle.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Angle.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Ident.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Ident.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Integer.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Integer.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Length.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Length.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+List.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Meta.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+None.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+None.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Number.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Number.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Percent.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Percent.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Resolution.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Resolution.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Time.cpp: Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Time.h: Added.
* Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:
* Source/WebCore/css/parser/CSSPropertyParserHelpers.h:
* Source/WebCore/css/parser/CSSPropertyParserWorkerSafe.cpp:
* Source/WebCore/css/process-css-properties.py:
* Source/WebCore/css/query/GenericMediaQueryParser.cpp:
* Source/WebCore/page/IntersectionObserver.cpp:
* Source/WebCore/style/StyleBuilderState.h:
Canonical link: https://commits.webkit.org/277585@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes