Closed Bug 871189 Opened 11 years ago Closed 11 years ago

Remove Document classinfo

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: dzbarsky, Assigned: dzbarsky)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
      No description provided.
Attachment #748479 - Flags: review?(bzbarsky)
Comment on attachment 748479 [details] [diff] [review]
Patch

Please don't land this until after the Aurora branchpoint so if we have to we can flip the switch on HTMLDocument back on 23.

You can remove DOCUMENT_SCRIPTABLE_FLAGS.

You can also remove sDocumentURIObject_id.

And you can remove the bits dealing with documentURIObject in XrayWrapper.cpp.

r=me with all that.
Attachment #748479 - Flags: review?(bzbarsky) → review+
Comment on attachment 748479 [details] [diff] [review]
Patch

Review of attachment 748479 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/base/nsDOMClassInfo.h
@@ +595,3 @@
>  // HTMLDocument helper
>  
> +class nsHTMLDocumentSH : public nsNodeSH

I'd rather this didn't inherit nsNodeSH, if possible.
Er, wait.  Why didn't nsHTMLDocumentSH go away in this patch?
(In reply to Boris Zbarsky (:bz) from comment #3)
> Er, wait.  Why didn't nsHTMLDocumentSH go away in this patch?

nsHTMLDocumentSH::TryResolveAll is called from nsHTMLDocument, and that calls all the static functions that I didn't remove.
Gah.  We need to fix .all to not be sucky like that.

But given that, do you actually need to inherit from nsNodeSH?
(In reply to Boris Zbarsky (:bz) from comment #5)
> Gah.  We need to fix .all to not be sucky like that.
> 
> But given that, do you actually need to inherit from nsNodeSH?

No, I just changed how we access the static stuff in nsDOMClassInfo.
https://hg.mozilla.org/integration/mozilla-inbound/rev/eaaa2d2ce8eb
https://hg.mozilla.org/mozilla-central/rev/eaaa2d2ce8eb
https://hg.mozilla.org/mozilla-central/rev/a83bc79f7c57
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: