Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7ee5597f0b26128e59e4691a772ebdfa3a6c3582
https://github.com/WebKit/WebKit/commit/7ee5597f0b26128e59e4691a772ebdfa3a6c3582
Author: Eri Pazos Pérez <[email protected]>
Date: 2025-10-16 (Thu, 16 Oct 2025)
Changed paths:
M Source/WTF/wtf/text/StringView.cpp
M Source/WTF/wtf/text/StringView.h
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/mathml/MathMLElement.h
M Source/WebCore/mathml/MathMLOperatorElement.cpp
M Source/WebCore/mathml/MathMLPresentationElement.cpp
M Source/WebCore/mathml/MathMLTokenElement.cpp
M Source/WebCore/mathml/MathMLTokenElement.h
M Source/WebCore/rendering/mathml/MathMLStyle.cpp
M Source/WebCore/rendering/mathml/MathMLStyle.h
A Source/WebCore/rendering/mathml/MathVariant.cpp
A Source/WebCore/rendering/mathml/MathVariant.h
M Source/WebCore/rendering/mathml/RenderMathMLToken.cpp
Log Message:
-----------
Move mathvariant related code to MathVariant
https://bugs.webkit.org/show_bug.cgi?id=202302
Reviewed by Frédéric Wang, Tim Nguyen, and Darin Adler.
Part of WebKit#51271. Moves the MathVariant enum and the mathVariant
function to the MathVariant file, making it cleaner to implement
text-transform: math-auto in the next patch.
Moves the convertToSingleCodePoint function to StringView. Now it doesn't
perform whitespace trimming of the input string, as MathML Core doesn't
define this. The two existing callers of this function are changed to do
the trimming beforehand.
No behaviour change.
* Source/WTF/wtf/text/StringView.cpp:
(WTF::StringView::convertToSingleCodePoint const):
* Source/WTF/wtf/text/StringView.h:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/mathml/MathMLElement.h:
* Source/WebCore/mathml/MathMLOperatorElement.cpp:
(WebCore::MathMLOperatorElement::parseOperatorChar):
* Source/WebCore/mathml/MathMLPresentationElement.cpp:
(WebCore::MathMLPresentationElement::parseMathVariantAttribute):
(WebCore::MathMLPresentationElement::specifiedMathVariant):
* Source/WebCore/mathml/MathMLTokenElement.cpp:
(WebCore::MathMLTokenElement::convertToSingleCodePoint): Deleted.
* Source/WebCore/mathml/MathMLTokenElement.h:
* Source/WebCore/rendering/mathml/MathMLStyle.cpp:
(WebCore::MathMLStyle::updateStyleIfNeeded):
(WebCore::MathMLStyle::resolveMathMLStyle):
* Source/WebCore/rendering/mathml/MathMLStyle.h:
* Source/WebCore/rendering/mathml/MathVariant.cpp: Added.
(WebCore::mathVariantMapCodePoint):
* Source/WebCore/rendering/mathml/MathVariant.h: Added.
* Source/WebCore/rendering/mathml/RenderMathMLToken.cpp:
(WebCore::RenderMathMLToken::updateMathVariantGlyph):
(WebCore::ExtractKey): Deleted.
(WebCore::MathVariantMappingSearch): Deleted.
(WebCore::mathVariant): Deleted.
* Source/WebCore/rendering/svg/RenderSVGContainer.cpp:
* Source/WebCore/rendering/svg/RenderSVGImage.cpp:
* Source/WebCore/svg/SVGGraphicsElement.cpp:
Canonical link: https://commits.webkit.org/301644@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