mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1492046 - get rid of nsIDOMXULLabeledControlElement, r=smaug
This commit is contained in:
parent
8d649d392e
commit
5050b3952b
@ -12,7 +12,6 @@ XPIDL_SOURCES += [
|
||||
'nsIDOMXULCommandDispatcher.idl',
|
||||
'nsIDOMXULContainerElement.idl',
|
||||
'nsIDOMXULControlElement.idl',
|
||||
'nsIDOMXULLabeledControlEl.idl',
|
||||
'nsIDOMXULMenuListElement.idl',
|
||||
'nsIDOMXULMultSelectCntrlEl.idl',
|
||||
'nsIDOMXULRelatedElement.idl',
|
||||
|
@ -3,10 +3,10 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIDOMXULLabeledControlEl.idl"
|
||||
#include "nsIDOMXULControlElement.idl"
|
||||
|
||||
[scriptable, uuid(6ed53cfb-9e59-424c-af8d-e74582381951)]
|
||||
interface nsIDOMXULButtonElement : nsIDOMXULLabeledControlElement {
|
||||
interface nsIDOMXULButtonElement : nsIDOMXULControlElement {
|
||||
attribute DOMString type;
|
||||
attribute DOMString dlgType;
|
||||
|
||||
@ -19,4 +19,3 @@ interface nsIDOMXULButtonElement : nsIDOMXULLabeledControlElement {
|
||||
// For buttons of type="radio" only.
|
||||
attribute DOMString group;
|
||||
};
|
||||
|
||||
|
@ -1,18 +0,0 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIDOMXULControlElement.idl"
|
||||
|
||||
[scriptable, uuid(c58a159f-e27d-40c8-865a-d4dcfd928f62)]
|
||||
interface nsIDOMXULLabeledControlElement : nsIDOMXULControlElement {
|
||||
attribute DOMString crop;
|
||||
attribute DOMString image;
|
||||
attribute DOMString label;
|
||||
attribute DOMString accessKey;
|
||||
attribute DOMString command;
|
||||
|
||||
// void doCommand();
|
||||
};
|
||||
|
@ -23,7 +23,7 @@
|
||||
</binding>
|
||||
|
||||
<binding id="basetext" extends="chrome://global/content/bindings/general.xml#basecontrol">
|
||||
<implementation implements="nsIDOMXULLabeledControlElement">
|
||||
<implementation>
|
||||
<!-- public implementation -->
|
||||
<property name="label" onset="this.setAttribute('label',val); return val;"
|
||||
onget="return this.getAttribute('label');"/>
|
||||
|
@ -70,7 +70,7 @@
|
||||
var control = this.labeledControlElement;
|
||||
if (!control) {
|
||||
var bindingParent = document.getBindingParent(this);
|
||||
if (bindingParent instanceof Ci.nsIDOMXULLabeledControlElement) {
|
||||
if ("accessKey" in bindingParent) {
|
||||
control = bindingParent; // For controls that make the <label> an anon child
|
||||
}
|
||||
}
|
||||
|
@ -32,7 +32,7 @@
|
||||
</xul:moz-input-box>
|
||||
</content>
|
||||
|
||||
<implementation implements="nsIDOMXULLabeledControlElement">
|
||||
<implementation>
|
||||
<!-- nsIDOMXULLabeledControlElement -->
|
||||
<field name="crop">""</field>
|
||||
<field name="image">""</field>
|
||||
|
Loading…
Reference in New Issue
Block a user