Closed
Bug 779085
Opened 13 years ago
Closed 13 years ago
Move attribute stuff from FragmentOrElement to nsGenericElement
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: ayg, Assigned: dzbarsky)
References
Details
(Whiteboard: [mentor=bz][lang=c++])
Attachments
(1 file)
|
2.57 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
(In reply to Boris Zbarsky (:bz) from bug 563659 comment #28)
> Is there a reason to implement HasAttributes/GetAttributes on the
> superclass, with switching on IsElement() instead of directly in subclasses?
> If not, a followup.
Comment 1•13 years ago
|
||
Aryeh, do you want to take this?
If not, David, do you want to?
| Assignee | ||
Comment 2•13 years ago
|
||
Aryeh, if you don't want this, I'll do it eventually.
| Reporter | ||
Comment 3•13 years ago
|
||
I have lots of other things to do right now, so probably not.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → dzbarsky
Status: NEW → ASSIGNED
Updated•13 years ago
|
Whiteboard: [mentor=bz]
Updated•13 years ago
|
Whiteboard: [mentor=bz] → [mentor=bz][lang=c++]
| Assignee | ||
Comment 4•13 years ago
|
||
Attachment #663055 -
Flags: review?(bzbarsky)
Comment 5•13 years ago
|
||
Comment on attachment 663055 [details] [diff] [review]
Patch
Review of attachment 663055 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/base/src/nsGenericElement.cpp
@@ +164,5 @@
> +{
> + nsDOMSlots *slots = DOMSlots();
> +
> + if (!slots->mAttributeMap) {
> + slots->mAttributeMap = new nsDOMAttributeMap(this->AsElement());
Just 'this', I think.
Comment 6•13 years ago
|
||
Comment on attachment 663055 [details] [diff] [review]
Patch
Can you put this on nsGenericElement instead?
r=me with that and the nixed AsElement() bit.
Attachment #663055 -
Flags: review?(bzbarsky) → review+
| Assignee | ||
Comment 7•13 years ago
|
||
Sure, but isn't the plan to merge dom::Element and nsGenericElement?
| Assignee | ||
Comment 8•13 years ago
|
||
Comment 9•13 years ago
|
||
Plan is in flux on that.
Comment 10•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•