Closed
Bug 993194
Opened 10 years ago
Closed 10 years ago
Use more smart pointers for node info
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: mccr8, Assigned: mccr8)
Details
Attachments
(5 files)
1.36 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
3.38 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
1.52 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
4.42 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
3.90 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Plus a few other minor cleanups.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8403351 -
Flags: review?(bugs)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8403352 -
Flags: review?(bugs)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8403353 -
Flags: review?(bugs)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8403354 -
Flags: review?(bugs)
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8403355 [details] [diff] [review] part 5 - Change nsNodeInfoManager::mPrincipal into an nsCOMPtr. https://tbpl.mozilla.org/?tree=Try&rev=a15f014376d7
Attachment #8403355 -
Flags: review?(bugs)
Updated•10 years ago
|
Attachment #8403351 -
Flags: review?(bugs) → review+
Comment 7•10 years ago
|
||
Comment on attachment 8403355 [details] [diff] [review] part 5 - Change nsNodeInfoManager::mPrincipal into an nsCOMPtr. Review of attachment 8403355 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/base/src/nsNodeInfoManager.cpp @@ +177,5 @@ > NS_ENSURE_TRUE(mNodeInfoHash, NS_ERROR_OUT_OF_MEMORY); > > NS_PRECONDITION(!mPrincipal, > "Being inited when we already have a principal?"); > + nsresult rv = CallCreateInstance<nsIPrincipal>("@mozilla.org/nullprincipal;1", ITYM mPrincipal = do_CreateInstance("@mozilla.org/nullprincipal;1", &rv);
Updated•10 years ago
|
Attachment #8403352 -
Flags: review?(bugs) → review+
Updated•10 years ago
|
Attachment #8403353 -
Flags: review?(bugs) → review+
Comment 8•10 years ago
|
||
Comment on attachment 8403354 [details] [diff] [review] part 4 - Make nsNodeInfoManager::mBindingManager into an nsRefPtr. >+#include "nsAutoPtr.h" // for nsRefPtr Do we actually need this? nsNodeInfoManager has non-inline ctor/dtor, so I think forward declaration would work. Either way
Attachment #8403354 -
Flags: review?(bugs) → review+
Comment 9•10 years ago
|
||
Comment on attachment 8403355 [details] [diff] [review] part 5 - Change nsNodeInfoManager::mPrincipal into an nsCOMPtr. r+ with the fix Ms2ger mentioned.
Attachment #8403355 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 10•10 years ago
|
||
> Do we actually need this?
Well, I thought I'd need it because a field is nsRefPtr. I don't think forward declaring it will work, but I can try.
Assignee | ||
Comment 11•10 years ago
|
||
I fixed the create instance thing. I left the autoptr include because it is needed. https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?changeset=17822faead4f
Assignee | ||
Updated•10 years ago
|
Version: 24 Branch → Trunk
Comment 12•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/60b489985023 https://hg.mozilla.org/mozilla-central/rev/0b44d3acbf1c https://hg.mozilla.org/mozilla-central/rev/c967d0222383 https://hg.mozilla.org/mozilla-central/rev/7bf9a591c078 https://hg.mozilla.org/mozilla-central/rev/00f61ba35bf5
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•