Closed
Bug 957652
Opened 12 years ago
Closed 11 years ago
Replace the Attr element getters by something that returns an Element
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: Ms2ger, Assigned: ehsan.akhgari)
References
Details
(Whiteboard: [qa-])
Attachments
(2 files)
10.79 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
10.76 KB,
patch
|
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Replace Attr::GetContentInternal(), nsIAttribute::GetContent(), and Attr::GetElement() by a non-virtual Element* nsIAttribute::GetElement(), I think. (Maybe implemented out-of-line in Attr.cpp.)
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #8357527 -
Flags: review?(bzbarsky)
![]() |
||
Comment 2•12 years ago
|
||
Comment on attachment 8357527 [details] [diff] [review]
Replace the Attr element getters by something that returns an Element; r=bzbarsky
r=me
Attachment #8357527 -
Flags: review?(bzbarsky) → review+
Reporter | ||
Comment 3•12 years ago
|
||
Comment on attachment 8357527 [details] [diff] [review]
Replace the Attr element getters by something that returns an Element; r=bzbarsky
Review of attachment 8357527 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/base/src/Attr.cpp
@@ +131,4 @@
> Element*
> Attr::GetElement() const
> {
> + nsIContent* content = mAttrMap ? mAttrMap->GetContent() : nullptr;
Could do an early return for !mAttrMap
Assignee | ||
Comment 4•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9d405c64a7bf
https://hg.mozilla.org/mozilla-central/rev/92efd61cfca5
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•11 years ago
|
Whiteboard: [qa-]
Assignee | ||
Comment 6•11 years ago
|
||
I'm going to back this out as part of backing out bug 957431.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 7•11 years ago
|
||
There doesn't seem to be any reason to back this out...
Assignee | ||
Comment 8•11 years ago
|
||
(In reply to comment #7)
> There doesn't seem to be any reason to back this out...
Hmm, perhaps I'm misremembering, but I think you asked me to do this in a followup right?
Reporter | ||
Comment 9•11 years ago
|
||
Sure, but this is an improvement regardless of the existence of ownerElement.
Assignee | ||
Comment 10•11 years ago
|
||
Ah, hmm, you're right indeed!
Status: REOPENED → RESOLVED
Closed: 12 years ago → 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•11 years ago
|
||
Actually, I will back this out, because this builds heavily on top of bug 957431 and I don't have time to disentangle the two right now.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 12•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → WONTFIX
Assignee | ||
Comment 13•11 years ago
|
||
We need this backout because the backout of bug 957431 is built on top of it.
Attachment #8394997 -
Flags: approval-mozilla-beta?
Attachment #8394997 -
Flags: approval-mozilla-aurora?
Reporter | ||
Comment 14•11 years ago
|
||
Still something we should fix, even if you don't want to do it right now.
Assignee: ehsan → nobody
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Target Milestone: mozilla29 → ---
Assignee | ||
Comment 15•11 years ago
|
||
(In reply to :Ms2ger from comment #14)
> Still something we should fix, even if you don't want to do it right now.
Filed bug 986857. We're going to use this bug for the backout on branches, etc.
Assignee: nobody → ehsan
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
status-firefox29:
--- → affected
status-firefox30:
--- → affected
status-firefox31:
--- → disabled
Resolution: --- → WONTFIX
Comment 16•11 years ago
|
||
Eshan, is it normal that the patch did not land in m-c yet? (or this bug has not been updated) Thanks
Flags: needinfo?(ehsan)
Assignee | ||
Comment 17•11 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #16)
> Eshan
s/sh/hs/ :-)
> is it normal that the patch did not land in m-c yet? (or this bug has
> not been updated) Thanks
Hmm, the patch has definitely landed in m-c <http://hg.mozilla.org/mozilla-central/rev/528cdf00642b>, not sure why the bug is not marked as such.
Flags: needinfo?(ehsan)
Comment 18•11 years ago
|
||
Comment on attachment 8394997 [details] [diff] [review]
Backout patch for branches
Sorry Ehsan for your name :/
Approving then. Sorry about the delay.
Attachment #8394997 -
Flags: approval-mozilla-beta?
Attachment #8394997 -
Flags: approval-mozilla-beta+
Attachment #8394997 -
Flags: approval-mozilla-aurora?
Attachment #8394997 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 19•11 years ago
|
||
No worries, thanks for the approval!
Assignee | ||
Comment 20•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•