Closed
Bug 838598
Opened 12 years ago
Closed 12 years ago
Convert HTMLMenuItemElement to WebIDL
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: baku, Assigned: baku)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 3 obsolete files)
20.44 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
6.21 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #710837 -
Flags: review?(Ms2ger)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #710839 -
Flags: review?(Ms2ger)
Assignee | ||
Comment 3•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=f271d2ba7b15 I hope it's green!
Comment 4•12 years ago
|
||
Comment on attachment 710837 [details] [diff] [review]
part 1 - renaming
Review of attachment 710837 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/html/content/src/nsHTMLMenuItemElement.h
@@ +20,5 @@
> public:
> using mozilla::dom::Element::GetText;
>
> + HTMLMenuItemElement(already_AddRefed<nsINodeInfo> aNodeInfo,
> + mozilla::dom::FromParser aFromParser);
Drop the mozilla::dom:: here and above
Attachment #710837 -
Flags: review?(Ms2ger) → review+
Comment 5•12 years ago
|
||
Comment on attachment 710839 [details] [diff] [review]
part 2 - webidl
Review of attachment 710839 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/html/content/src/HTMLMenuItemElement.h
@@ +84,5 @@
> +
> + // The XPCOM GetLabel is OK for us
> + void SetLabel(const nsAString& aLabel, ErrorResult& aError)
> + {
> + SetAttrHelper(nsGkAtoms::label, aLabel);
SetHTMLAttr
@@ +90,5 @@
> +
> + // The XPCOM GetIcon is OK for us
> + void SetIcon(const nsAString& aIcon, ErrorResult& aError)
> + {
> + SetAttrHelper(nsGkAtoms::icon, aIcon);
Same here
@@ +108,5 @@
> + return mChecked;
> + }
> + void SetChecked(bool aChecked, ErrorResult& aError)
> + {
> + aError = SetChecked(aChecked);
This can't throw. Just using the XPCOM one is fine, but add a comment.
@@ +128,5 @@
> + }
> +
> +protected:
> + virtual JSObject* WrapNode(JSContext *aCx, JSObject *aScope,
> + bool *aTriedToWrap) MOZ_OVERRIDE;
* to the left
::: dom/webidl/HTMLMenuItemElement.webidl
@@ +11,5 @@
> + * and create derivative works of this document.
> + */
> +
> +// http://www.whatwg.org/specs/web-apps/current-work/#the-menuitem-element
> +interface HTMLMenuItemElement : HTMLElement {
All this used to be on HTMLCommandElement in our implementation... Please confirm with janv this is fine.
Attachment #710839 -
Flags: review?(Ms2ger) → review+
Comment 6•12 years ago
|
||
> SetHTMLAttr
And pass aError to it, too?
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #710839 -
Attachment is obsolete: true
Attachment #711342 -
Flags: review?(peterv)
Assignee | ||
Updated•12 years ago
|
Attachment #711342 -
Attachment is obsolete: true
Attachment #711342 -
Flags: review?(peterv)
Assignee | ||
Updated•12 years ago
|
Attachment #710839 -
Attachment is obsolete: false
Comment 8•12 years ago
|
||
Anything blocking this?
Assignee | ||
Updated•12 years ago
|
Attachment #710839 -
Flags: review?(Jan.Varga)
Assignee | ||
Updated•12 years ago
|
Attachment #710837 -
Flags: review?(Jan.Varga)
Updated•12 years ago
|
Attachment #710837 -
Flags: review?(Jan.Varga) → review+
Comment 9•12 years ago
|
||
Comment on attachment 710839 [details] [diff] [review]
part 2 - webidl
r=me, but I think we should mention the interface change in https://developer.mozilla.org/en-US/docs/Firefox_21_for_developers
So, don't forget to update it
Attachment #710839 -
Flags: review?(Jan.Varga) → review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 10•12 years ago
|
||
Merged to tip for Ryan :)
Attachment #710837 -
Attachment is obsolete: true
Attachment #715064 -
Flags: review+
Comment 11•12 years ago
|
||
Attachment #710839 -
Attachment is obsolete: true
Attachment #715065 -
Flags: review+
Comment 12•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8497cf15a6dc
https://hg.mozilla.org/integration/mozilla-inbound/rev/3fa2b18fae9c
Keywords: checkin-needed
Comment 13•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8497cf15a6dc
https://hg.mozilla.org/mozilla-central/rev/3fa2b18fae9c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
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
•