Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e61b71940cb9b5d2b61651c7e31e46f79062a57e
https://github.com/WebKit/WebKit/commit/e61b71940cb9b5d2b61651c7e31e46f79062a57e
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-31 (Fri, 31 Jul 2026)
Changed paths:
M Source/WebCore/mathml/MathMLMencloseElement.cpp
Log Message:
-----------
[MathML] Use SpaceSplitString to parse the <menclose> notation attribute
instead of a hand-rolled tokenizer
https://bugs.webkit.org/show_bug.cgi?id=320710
rdar://183698052
Reviewed by Frédéric Wang Nélar.
MathMLMencloseElement::parseNotationAttribute() open-coded whitespace
splitting to walk the notation attribute. The notation attribute is an
unordered set of unique space-separated tokens, which is exactly what
SpaceSplitString models, so use it and delete the hand-rolled loop.
No change in behavior: SpaceSplitString tokenizes on isASCIIWhitespace()
just as the removed loop did, matching is still case-sensitive
(ShouldFoldCase::No), and a missing, empty, or whitespace-only attribute
still yields no notation flags (the default longdiv case is handled
before this point).
* Source/WebCore/mathml/MathMLMencloseElement.cpp:
(WebCore::MathMLMencloseElement::parseNotationAttribute):
Canonical link: https://commits.webkit.org/318306@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications