Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4629e1b12aed6c812c42f21432241798bf8e4a52
https://github.com/WebKit/WebKit/commit/4629e1b12aed6c812c42f21432241798bf8e4a52
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-31 (Fri, 31 Jul 2026)
Changed paths:
M Source/WebCore/mathml/MathMLMathElement.cpp
M Source/WebCore/mathml/MathMLMathElement.h
Log Message:
-----------
[MathML] Remove duplicated mathvariant invalidation from
MathMLMathElement::attributeChanged
https://bugs.webkit.org/show_bug.cgi?id=320712
rdar://183698921
Reviewed by Frédéric Wang Nélar.
MathMLMathElement::attributeChanged() reproduced the body of
MathMLPresentationElement::attributeChanged() verbatim and then chained
straight to MathMLElement::attributeChanged() so the invalidation would
not run twice.
MathMLRowElement does not override attributeChanged(), so the inherited
implementation for <math> is MathMLPresentationElement's, which is
identical. acceptsLegacyMathVariantAttribute() is virtual, so the base
implementation still dispatches to MathMLMathElement's override. The
whole override is therefore redundant and is removed, along with the
now-unused MathMLNames include and using-directive.
No change in behavior.
* Source/WebCore/mathml/MathMLMathElement.cpp:
(WebCore::MathMLMathElement::attributeChanged): Deleted.
* Source/WebCore/mathml/MathMLMathElement.h:
Canonical link: https://commits.webkit.org/318310@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications