Closed
Bug 847589
Opened 12 years ago
Closed 12 years ago
Paris binding for AnimationEvent
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(2 files, 2 obsolete files)
5.53 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
5.39 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → bugs
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #721388 -
Flags: review?(Ms2ger)
Comment 3•12 years ago
|
||
Comment on attachment 721388 [details] [diff] [review]
patch
Review of attachment 721388 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/events/src/nsDOMAnimationEvent.h
@@ +27,5 @@
>
> + virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope,
> + bool* aTriedToWrap)
> + {
> + return mozilla::dom::AnimationEventBinding::Wrap(aCx, aScope, this,
I'd prefer moving this into the .cpp, and not including *Binding.h in the header.
@@ +30,5 @@
> + {
> + return mozilla::dom::AnimationEventBinding::Wrap(aCx, aScope, this,
> + aTriedToWrap);
> + }
> +
Please add a comment that you're using the XPCOM GetAnimationName.
@@ +33,5 @@
> + }
> +
> + float ElapsedTime()
> + {
> + return AnimationEvent()->elapsedTime;
Make XPCOM GetElapsedTime call this to make sure they don't get out of sync.
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to :Ms2ger from comment #3)
> ::: content/events/src/nsDOMAnimationEvent.h
> @@ +27,5 @@
> >
> > + virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope,
> > + bool* aTriedToWrap)
> > + {
> > + return mozilla::dom::AnimationEventBinding::Wrap(aCx, aScope, this,
>
> I'd prefer moving this into the .cpp, and not including *Binding.h in the
> header.
Why exactly. Especially once we have ctor support, including Binding.h just makes the code a tiny bit simpler.
Assignee | ||
Comment 5•12 years ago
|
||
The header for this kind of event classes is inherited only by the .cpp file and *Binding.cpp so
it really shouldn't matter whether #include is in .h, and having it in .h is just simpler.
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #721388 -
Attachment is obsolete: true
Attachment #721388 -
Flags: review?(Ms2ger)
Attachment #723112 -
Flags: review?(Ms2ger)
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #723112 -
Attachment is obsolete: true
Attachment #723112 -
Flags: review?(Ms2ger)
Attachment #723114 -
Flags: review?(Ms2ger)
Comment 8•12 years ago
|
||
Comment on attachment 723114 [details] [diff] [review]
patch
Review of attachment 723114 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/events/src/nsDOMAnimationEvent.h
@@ +28,5 @@
> + virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope,
> + bool* aTriedToWrap)
> + {
> + return mozilla::dom::AnimationEventBinding::Wrap(aCx, aScope, this,
> + aTriedToWrap);
aTriedToWrap is gone now
Attachment #723114 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Comment 9•12 years ago
|
||
Assignee | ||
Comment 10•12 years ago
|
||
Assignee | ||
Comment 11•12 years ago
|
||
Comment 12•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
•