Closed
Bug 761020
Opened 12 years ago
Closed 12 years ago
Add nsIDocument::GetDocumentType()
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: Ms2ger, Assigned: Ms2ger)
Details
Attachments
(1 file)
5.17 KB,
patch
|
mounir
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #629644 -
Flags: review?(mounir)
Comment 1•12 years ago
|
||
Comment on attachment 629644 [details] [diff] [review]
Patch v1
Review of attachment 629644 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/base/src/nsDocument.cpp
@@ +4318,5 @@
> + if (child->NodeType() == nsIDOMNode::DOCUMENT_TYPE_NODE) {
> + return child;
> + }
> + }
> + return NULL;
I would prefer |nsnull|. I don't think we chose to move to |NULL|.
@@ +4325,4 @@
> NS_IMETHODIMP
> nsDocument::GetDoctype(nsIDOMDocumentType** aDoctype)
> {
> NS_ENSURE_ARG_POINTER(aDoctype);
No need for that. Use |MOZ_ASSERT(aDocType)| instead.
Attachment #629644 -
Flags: review?(mounir) → review+
Assignee | ||
Comment 2•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
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
•