Closed
Bug 707576
Opened 13 years ago
Closed 13 years ago
Remove nsIDOMNSElement
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
Details
(Keywords: addon-compat, dev-doc-needed)
Attachments
(1 file)
62.82 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Got a patch, still need to check if it's ready for review.
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #580741 -
Flags: review?(bugs)
Comment 2•13 years ago
|
||
Comment on attachment 580741 [details] [diff] [review] Patch v1 >-nsNSElementTearoff::GetFirstElementChild(nsIDOMElement** aResult) >+nsGenericElement::GetChildElementCount(PRUint32* aResult) >+{ >+ nsContentList* list = GetChildrenList(); >+ if (!list) { >+ *aResult = 0; >+ return NS_ERROR_OUT_OF_MEMORY; >+ } >+ >+ *aResult = list->Length(true); >+ return NS_OK; >+} Why OOM check? Maybe *aResult = GetChildrenList()->Length(true); return NS_OK; >+NS_IMETHODIMP >+nsGenericElement::GetChildElements(nsIDOMNodeList** aResult) >+{ >+ nsContentList* list = GetChildrenList(); >+ if (!list) { >+ *aResult = nsnull; >+ return NS_ERROR_OUT_OF_MEMORY; >+ } >+ >+ NS_ADDREF(*aResult = list); >+ return NS_OK; >+} Maybe NS_ADDREF(*aResult = GetChildrenList()); return NS_OK; > >+NS_IMETHODIMP >+nsGenericElement::GetOnmouseenter(JSContext* cx, JS::Value* vp) >+{ >+ return nsINode::GetOnmouseenter(cx, vp); >+} >+ >+NS_IMETHODIMP >+nsGenericElement::SetOnmouseenter(JSContext* cx, const JS::Value& v) >+{ >+ return nsINode::SetOnmouseenter(cx, v); >+} >+ >+NS_IMETHODIMP >+nsGenericElement::GetOnmouseleave(JSContext* cx, JS::Value* vp) >+{ >+ return nsINode::GetOnmouseleave(cx, vp); >+} >+ >+NS_IMETHODIMP >+nsGenericElement::SetOnmouseleave(JSContext* cx, const JS::Value& v) >+{ >+ return nsINode::SetOnmouseleave(cx, v); >+} Waiting to get answer why this change is needed.
Attachment #580741 -
Flags: review?(bugs) → review-
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #2) > Comment on attachment 580741 [details] [diff] [review] > Patch v1 > > GetChildrenList OK, didn't realize this was infallible. > > > >+NS_IMETHODIMP > >+nsGenericElement::GetOnmouseenter(JSContext* cx, JS::Value* vp) > >+{ > >+ return nsINode::GetOnmouseenter(cx, vp); > >+} > >+ > >+NS_IMETHODIMP > >+nsGenericElement::SetOnmouseenter(JSContext* cx, const JS::Value& v) > >+{ > >+ return nsINode::SetOnmouseenter(cx, v); > >+} > >+ > >+NS_IMETHODIMP > >+nsGenericElement::GetOnmouseleave(JSContext* cx, JS::Value* vp) > >+{ > >+ return nsINode::GetOnmouseleave(cx, vp); > >+} > >+ > >+NS_IMETHODIMP > >+nsGenericElement::SetOnmouseleave(JSContext* cx, const JS::Value& v) > >+{ > >+ return nsINode::SetOnmouseleave(cx, v); > >+} > Waiting to get answer why this change is needed. Because I used NS_DECL_NSIDOMELEMENT in nsGenericElement.h, I get linking errors if these aren't defined.
Comment 4•13 years ago
|
||
Comment on attachment 580741 [details] [diff] [review] Patch v1 Ok. Fix the OOM cases, r+
Attachment #580741 -
Flags: review- → review+
Assignee | ||
Updated•13 years ago
|
Keywords: addon-compat,
dev-doc-needed
Assignee | ||
Comment 5•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f9f6f9ed788a
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
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
•