Closed
Bug 1423492
Opened 7 years ago
Closed 7 years ago
Move side effects from SVG attribute unsetting to BeforeSetAttr / AfterSetAttr, and devirtualize UnsetAttr
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: emilio, Assigned: bzbarsky)
References
Details
Attachments
(4 files, 1 obsolete file)
3.53 KB,
patch
|
bytesized
:
review+
|
Details | Diff | Splinter Review |
4.25 KB,
patch
|
bytesized
:
review+
|
Details | Diff | Splinter Review |
4.88 KB,
patch
|
bytesized
:
review+
|
Details | Diff | Splinter Review |
3.45 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
Also from bug 1423167:
> There are a few more overrides of UnsetAttr, all SVG, but again they should probably be able to transition to Before/AfterSett and then we can devirtualize here. A separate bug on doing that, please? nsSVGElement::UnsetAttr might get complicated...
This is similar to bug 1423490, just with UnsetAttr instead.
Updated•7 years ago
|
Priority: -- → P2
![]() |
Assignee | |
Updated•7 years ago
|
Summary: Move side effects from SVG attribute setting to BeforeSetAttr / AfterSetAttr, and devirtualize UnsetAttr → Move side effects from SVG attribute unsetting to BeforeSetAttr / AfterSetAttr, and devirtualize UnsetAttr
![]() |
Assignee | |
Comment 1•7 years ago
|
||
MozReview-Commit-ID: Ih8QmVkoOFZ
Attachment #8938610 -
Flags: review?(ksteuber)
![]() |
Assignee | |
Updated•7 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 2•7 years ago
|
||
MozReview-Commit-ID: JdjEuESAsD9
Attachment #8938611 -
Flags: review?(ksteuber)
![]() |
Assignee | |
Comment 3•7 years ago
|
||
This changes behavior some, by moving the code involved from "before we remove
the attribute" to AfterSetAttr. But I think it should be OK, and SVG elements
can't sanely implement BeforeSetAttr right now...
MozReview-Commit-ID: KQGIDQOMGne
Attachment #8938612 -
Flags: review?(ksteuber)
![]() |
Assignee | |
Comment 4•7 years ago
|
||
There are now no more overrides of UnsetAttr, so it can stop being virtual.
MozReview-Commit-ID: 4QzAKCkRfgs
Attachment #8938613 -
Flags: review?(ksteuber)
![]() |
Assignee | |
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment on attachment 8938612 [details] [diff] [review]
part 3. Stop overring UnsetAttr in SVGMarkerElement
Review of attachment 8938612 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/svg/SVGMarkerElement.cpp
@@ +245,5 @@
> {
> + if (!aValue && aNamespaceID == kNameSpaceID_None &&
> + aName == nsGkAtoms::orient) {
> + // XXXbz Should this really be in BeforeSetAttr, not AfterSetAttr?
> + // Preserving the old behavior for now....
The commit message seems right about a minor behavior change, but this comment seems like it is saying the opposite. Am I misunderstanding something?
![]() |
Assignee | |
Comment 7•7 years ago
|
||
Oops, that comment predates me discovering that SVG things can't implement BeforeSetAttr... As the comment indicates, doing this in AfterSetAttr is arguably saner anyway
Attachment #8939630 -
Flags: review?(kyle)
![]() |
Assignee | |
Updated•7 years ago
|
Attachment #8938612 -
Attachment is obsolete: true
Attachment #8938612 -
Flags: review?(ksteuber)
Comment 8•7 years ago
|
||
Comment on attachment 8938610 [details] [diff] [review]
part 1. Stop overring UnsetAttr in SVGAnimationElement
Review of attachment 8938610 [details] [diff] [review]:
-----------------------------------------------------------------
These all look good to me.
Attachment #8938610 -
Flags: review?(ksteuber) → review+
Updated•7 years ago
|
Attachment #8938611 -
Flags: review?(ksteuber) → review+
Updated•7 years ago
|
Attachment #8938613 -
Flags: review?(ksteuber) → review+
Updated•7 years ago
|
Attachment #8939630 -
Flags: review?(kyle) → review+
Comment 9•7 years ago
|
||
Comment on attachment 8939630 [details] [diff] [review]
part 3. Stop overring UnsetAttr in SVGMarkerElement
oops
Attachment #8939630 -
Flags: review+ → review?(kyle)
Updated•7 years ago
|
Attachment #8939630 -
Flags: review?(kyle) → review+
![]() |
Assignee | |
Comment 10•7 years ago
|
||
> oops
Actually, my oops. I totally typed in the wrong username... :(
Comment 11•7 years ago
|
||
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f0cb5b7abb37
part 1. Stop overring UnsetAttr in SVGAnimationElement. r=bytesized
https://hg.mozilla.org/integration/mozilla-inbound/rev/a24287fb46ab
part 2. Stop overring UnsetAttr in SVGMPathElement. r=bytesized
https://hg.mozilla.org/integration/mozilla-inbound/rev/ccd05fb92628
part 3. Stop overring UnsetAttr in SVGMarkerElement. r=bytesized,qdot
https://hg.mozilla.org/integration/mozilla-inbound/rev/c4310a053726
part 4. Stop overring UnsetAttr in SVGElement. r=bytesized
Comment 12•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f0cb5b7abb37
https://hg.mozilla.org/mozilla-central/rev/a24287fb46ab
https://hg.mozilla.org/mozilla-central/rev/ccd05fb92628
https://hg.mozilla.org/mozilla-central/rev/c4310a053726
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•