Closed Bug 1423490 Opened 7 years ago Closed 6 years ago

Move side effects from SVG attribute setting to BeforeSetAttr / AfterSetAttr, and devirtualize SetAttr

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: emilio, Assigned: bzbarsky)

References

Details

Attachments

(2 files)

From bug 1423167:

> So...  The only overrides of this that are subclasses of Element are SVGAElement::SetAttr and SVGStyleElement::SetAttr.  It looks like those got skipped in bug 1365092 because of some unrelated SVG problems.  Do you mind filing a followup to move the work there into AfterSetAttr and devirtualize this function?
See Also: → 1423492
Priority: -- → P2
Summary: Move side effects from SVG attribute parsing to BeforeSetAttr / AfterSetAttr, and devirtualize SetAttr → Move side effects from SVG attribute setting to BeforeSetAttr / AfterSetAttr, and devirtualize SetAttr
Blocks: 1423492
This aligns SVGAElement with HTMLAnchorElement in terms of how they handle
attribute changes.

MozReview-Commit-ID: Azr6tTBaxTT
Attachment #8938608 - Flags: review?(ksteuber)
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
This aligns the behavior with HTMLStyleElement.

There are no more overrides, so SetAttr can become non-virtual.

MozReview-Commit-ID: 9PFrHg7x0nY
Attachment #8938609 - Flags: review?(ksteuber)
Comment on attachment 8938608 [details] [diff] [review]
part 1.  Stop overriding SetAttr in SVGAElement

Review of attachment 8938608 [details] [diff] [review]:
-----------------------------------------------------------------

These both look good to me.
Attachment #8938608 - Flags: review?(ksteuber) → review+
Attachment #8938609 - Flags: review?(ksteuber) → review+
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1427408aa366
part 1.  Stop overriding SetAttr in SVGAElement.  r=bytesized
https://hg.mozilla.org/integration/mozilla-inbound/rev/3384659645d3
part 2.  Stop overriding SetAttr in SVGStyleElement.  r=bytesized
https://hg.mozilla.org/mozilla-central/rev/1427408aa366
https://hg.mozilla.org/mozilla-central/rev/3384659645d3
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: