Closed Bug 848386 Opened 11 years ago Closed 11 years ago

Convert SVGDocument to WebIDL

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

Like the summary says.
Blocks: 848332
No longer depends on: 848332
Blocks: 848796
Attachment #722376 - Flags: review?(peterv)
Attachment #722372 - Flags: review?(peterv) → review+
Comment on attachment 722373 [details] [diff] [review]
part 2.  Implement a WebIDL equivalent for nsDocumentSH::PostCreate setting up the document as an own property on the Window.

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

::: content/base/src/nsDocument.cpp
@@ +11102,5 @@
> +bool
> +nsIDocument::PostCreateWrapper(JSContext* aCx, JSObject *aNewObject)
> +{
> +  // This is just a hack around the fact that window.document is not
> +  // [Unforgeable] yet.

Add this above the function, I thought it was about the MOZ_ASSERT :-).
Attachment #722373 - Flags: review?(peterv) → review+
> Add this above the function,

Done.
Comment on attachment 722374 [details] [diff] [review]
part 3.  Rename nsSVGDocument to mozilla::dom::SVGDocument.

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

::: content/svg/document/src/nsSVGDocument.h
@@ +37,5 @@
>    virtual nsXPCClassInfo* GetClassInfo();
>  };
>  
> +} // namespace dom
> +} // namespace mozilla 

Trailing whitespace.
Attachment #722374 - Flags: review?(peterv) → review+
Comment on attachment 722375 [details] [diff] [review]
part 4.  Rename nsXMLDocument to mozilla::dom::XMLDocument.

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

::: content/xml/document/src/nsXMLDocument.cpp
@@ +264,1 @@
>                            nsIPrincipal* aPrincipal)

Reindent second line.
Attachment #722375 - Flags: review?(peterv) → review+
Comment on attachment 722376 [details] [diff] [review]
part 5.  Convert SVGDocument to WebIDL.

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

::: content/svg/document/src/SVGDocument.cpp
@@ +113,5 @@
>  }
>  
> +JSObject*
> +SVGDocument::WrapNode(JSContext *aCx, JSObject *aScope,
> +                      bool *aTriedToWrap)

aTriedToWrap is gone.

::: content/svg/document/src/SVGDocument.h
@@ +44,5 @@
> +  nsSVGElement* GetRootElement(ErrorResult& aRv);
> +
> +protected:
> +  virtual JSObject* WrapNode(JSContext *aCx, JSObject *aScope,
> +                             bool *aTriedToWrap) MOZ_OVERRIDE;

aTriedToWrap is gone.
Attachment #722376 - Flags: review?(peterv) → review+
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: