Closed Bug 404406 Opened 17 years ago Closed 16 years ago

Make MathML attribute mapping content-based

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

References

Details

Attachments

(1 file, 1 obsolete file)

To make things a bit more sane, I've reimplemented MathML attribute-style mapping in content with a new nsMathMLElement. This lays the groundwork for style system support for scriptlevel, scriptminsize and scriptsizemultiplier.
Attached patch fix (obsolete) — Splinter Review
-- Refactor attribute-mapping logic from nsGenericHTMLElement into a new base class nsMappedAttributeElement.
-- Inherit from that class to new nsMathMLElement
-- Implement MathML attribute mapping logic there
-- Also implement mapping logic for scriptlevel, scriptminsize, scriptsizemultiplier (currently the ruledata is unused, I'm fixing that next)
-- The new mapping logic restricts attributes to the elements for which the MathML REC says they should apply; the old logic did not.
-- Remove attribute mapping logic from MathML frames
-- Reftest; currently the test does not actually test anything, because none of the MathML elements render due to layout bugs karlt is working on. But I verified that things are OK via the DOM Inspector.

David, if you want someone else to review this (Jonas?) let me know.
Attachment #289396 - Flags: superreview?(dbaron)
Attachment #289396 - Flags: review?(dbaron)
Attached patch updated patchSplinter Review
That patch was missing some changes to dom/. Also, this update makes the new members of nsCSSFont #ifdef MOZ_MATHML.
Attachment #289396 - Attachment is obsolete: true
Attachment #289430 - Flags: superreview?(dbaron)
Attachment #289430 - Flags: review?(dbaron)
Attachment #289396 - Flags: superreview?(dbaron)
Attachment #289396 - Flags: review?(dbaron)
Comment on attachment 289430 [details] [diff] [review]
updated patch

My attempts to separate this from work on bug 355548 kinda failed. I'm just going to post a big patch there.
Attachment #289430 - Flags: superreview?(dbaron)
Attachment #289430 - Flags: review?(dbaron)
Fixed by 355548, basically.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Component: DOM: Core → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: