Closed
Bug 847586
Opened 12 years ago
Closed 12 years ago
Paris binding for MutationEvent
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(2 files, 3 obsolete files)
7.62 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
7.59 KB,
patch
|
Details | Diff | Splinter Review |
.
Assignee | ||
Comment 1•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=779cc0e2816d
Wanted to do a try: -a for the first webidl event on top of the base Event interface.
Assignee: nobody → bugs
Comment 2•12 years ago
|
||
Comment on attachment 721317 [details] [diff] [review]
patch
Review of attachment 721317 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/events/src/nsDOMMutationEvent.h
@@ +49,5 @@
> + nsINode*& aRelatedNode,
> + const mozilla::dom::NonNull<nsAString>& aPrevValue,
> + const mozilla::dom::NonNull<nsAString_internal>& aNewValue,
> + const mozilla::dom::NonNull<nsAString_internal>& aAttrName,
> + uint16_t& aAttrChange, mozilla::ErrorResult& aRv)
Should just be
void InitMutationEvent(const nsAString& aType,
bool aCanBubble, bool aCancelable,
nsINode* aRelatedNode,
const nsAString& aPrevValue,
const nsAString& aNewValue,
const nsAString& aAttrName,
uint16_t aAttrChange, mozilla::ErrorResult& aRv)
Assignee | ||
Comment 3•12 years ago
|
||
Hmm, ok.
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #721317 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #721332 -
Flags: review?(Ms2ger)
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #721332 -
Attachment is obsolete: true
Attachment #721332 -
Flags: review?(Ms2ger)
Attachment #723119 -
Flags: review?(Ms2ger)
Assignee | ||
Comment 6•12 years ago
|
||
(Could use AsDOMNode() instead of QI. But not big deal)
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #723119 -
Attachment is obsolete: true
Attachment #723119 -
Flags: review?(Ms2ger)
Attachment #723123 -
Flags: review?(Ms2ger)
Comment 8•12 years ago
|
||
Comment on attachment 723123 [details] [diff] [review]
patch
Review of attachment 723123 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/events/src/nsDOMMutationEvent.cpp
@@ +42,5 @@
> nsDOMMutationEvent::GetRelatedNode(nsIDOMNode** aRelatedNode)
> {
> + nsCOMPtr<nsINode> relatedNode = GetRelatedNode();
> + nsCOMPtr<nsIDOMNode> relatedDOMNode = relatedNode ? relatedNode->AsDOMNode() : nullptr;
> + relatedDOMNode.swap(*aRelatedNode);
relatedDOMNode.forget(aRelatedNode);
::: content/events/src/nsDOMMutationEvent.h
@@ +39,5 @@
> +
> + already_AddRefed<nsINode> GetRelatedNode()
> + {
> + nsCOMPtr<nsINode> n =
> + do_QueryInterface(static_cast<nsMutationEvent*>(mEvent)->mRelatedNode);
I'd ask for a followup to make mRelatedNode an nsINode, but meh, MutationEvent.
Attachment #723123 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Comment 9•12 years ago
|
||
Assignee | ||
Comment 10•12 years ago
|
||
Comment 11•12 years ago
|
||
Push backed out for crashes, eg:
https://tbpl.mozilla.org/php/getParsedLog.php?id=20644254&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20644682&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=20644913&tree=Mozilla-Inbound
https://hg.mozilla.org/integration/mozilla-inbound/rev/630d841daf46
https://hg.mozilla.org/integration/mozilla-inbound/rev/44810fa6c312
https://hg.mozilla.org/integration/mozilla-inbound/rev/9f128f1af706
Comment 12•12 years ago
|
||
Comment on attachment 724855 [details] [diff] [review]
patch
>+
>+ virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope)
MOZ_OVERRIDE
Assignee | ||
Comment 13•12 years ago
|
||
Comment 14•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in
before you can comment on or make changes to this bug.
Description
•