Closed Bug 1918310 Opened 1 year ago Closed 1 year ago

mroot and msqrt should share their implementation

Categories

(Core :: MathML, task)

task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: fwang, Assigned: fwang)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

That used to be the case, until I implemented menclose (which accepted the notation="radical" notation). notation="radical" was removed in bug 1548522, so it makes more sense for msqrt to share the implementation with mroot.

MathML Core actually does that by wrapping the children of msqrt in an anonymous mrow:
https://w3c.github.io/mathml-core/#radicals-msqrt-mroot

The <msqrt> element generates an anonymous <mrow> box called the msqrt base.

Depends on: 1783995
Attachment #9424677 - Attachment description: WIP: Bug 1918310 - Make mroot and msqrt should share their implementation. r=emilio → Bug 1918310 - Make mroot and msqrt should share their implementation. r=emilio

This class is currently only used:

  • To override InheritAutomaticData(), we move that directly in
    nsMathMLrootFrame. Probably we should do that too when
    ShouldUseRowFallback() returns true, but this patch does not try and
    change current behavior.

  • To override IsMrowLike(), but it's actually doing exactly the same as
    nsMathMLContainerFrame and nsMathMLmrootFrame does not override it.
    Again, these implementations are likely wrong, but we keep current
    behavior.

Blocks: 1916988
Pushed by fwang@igalia.com: https://hg.mozilla.org/integration/autoland/rev/5df0457b5b41 Make mroot and msqrt should share their implementation. r=emilio https://hg.mozilla.org/integration/autoland/rev/b5768f9d9c6b Remove class nsMathMLmsqrtFrame. r=emilio
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: