Bug 1456703 - Remove nsIDOMXULTextBoxElement draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Thu, 26 Apr 2018 15:17:00 -0700
changeset 788737 64837aff12d1632b7ec8601ae95c335bf68fac35
parent 788736 41fa16051b094d2edb9c675352193cee4ba8f8b4
push id108076
push userbgrinstead@mozilla.com
push dateThu, 26 Apr 2018 22:17:10 +0000
bugs1456703
milestone61.0a1
Bug 1456703 - Remove nsIDOMXULTextBoxElement MozReview-Commit-ID: 6ZRzVq1bJjz
accessible/xul/XULFormControlAccessible.cpp
dom/base/nsFocusManager.cpp
dom/interfaces/xul/moz.build
dom/interfaces/xul/nsIDOMXULMenuListElement.idl
dom/interfaces/xul/nsIDOMXULTextboxElement.idl
toolkit/content/widgets/textbox.xml
--- a/accessible/xul/XULFormControlAccessible.cpp
+++ b/accessible/xul/XULFormControlAccessible.cpp
@@ -16,17 +16,16 @@
 #include "TreeWalker.h"
 #include "XULMenuAccessible.h"
 
 #include "nsIDOMNSEditableElement.h"
 #include "nsIDOMXULButtonElement.h"
 #include "nsIDOMXULCheckboxElement.h"
 #include "nsIDOMXULMenuListElement.h"
 #include "nsIDOMXULSelectCntrlItemEl.h"
-#include "nsIDOMXULTextboxElement.h"
 #include "nsIEditor.h"
 #include "nsIFrame.h"
 #include "nsITextControlFrame.h"
 #include "nsMenuPopupFrame.h"
 #include "nsNameSpaceManager.h"
 #include "mozilla/dom/Element.h"
 
 using namespace mozilla::a11y;
--- a/dom/base/nsFocusManager.cpp
+++ b/dom/base/nsFocusManager.cpp
@@ -61,17 +61,16 @@
 #include "mozilla/IMEStateManager.h"
 #include "mozilla/LookAndFeel.h"
 #include "mozilla/Preferences.h"
 #include "mozilla/Services.h"
 #include "mozilla/Unused.h"
 #include <algorithm>
 
 #ifdef MOZ_XUL
-#include "nsIDOMXULTextboxElement.h"
 #include "nsIDOMXULMenuListElement.h"
 #endif
 
 #ifdef ACCESSIBILITY
 #include "nsAccessibilityService.h"
 #endif
 
 #ifndef XP_MACOSX
--- a/dom/interfaces/xul/moz.build
+++ b/dom/interfaces/xul/moz.build
@@ -16,13 +16,12 @@ XPIDL_SOURCES += [
     'nsIDOMXULDescriptionElement.idl',
     'nsIDOMXULLabeledControlEl.idl',
     'nsIDOMXULLabelElement.idl',
     'nsIDOMXULMenuListElement.idl',
     'nsIDOMXULMultSelectCntrlEl.idl',
     'nsIDOMXULRelatedElement.idl',
     'nsIDOMXULSelectCntrlEl.idl',
     'nsIDOMXULSelectCntrlItemEl.idl',
-    'nsIDOMXULTextboxElement.idl',
 ]
 
 XPIDL_MODULE = 'dom_xul'
 
--- a/dom/interfaces/xul/nsIDOMXULMenuListElement.idl
+++ b/dom/interfaces/xul/nsIDOMXULMenuListElement.idl
@@ -1,15 +1,14 @@
 /* -*- 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 "nsIDOMXULSelectCntrlEl.idl"
-interface nsIDOMXULTextBoxElement;
 interface nsIDOMNode;
 
 [scriptable, uuid(36c16a17-c0e9-4b35-951b-81a147314ef1)]
 interface nsIDOMXULMenuListElement : nsIDOMXULSelectControlElement {
   attribute boolean editable;
   attribute boolean open;
   
   // label of selected option or value of textfield for editable menu lists
deleted file mode 100644
--- a/dom/interfaces/xul/nsIDOMXULTextboxElement.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-/* -*- Mode: C++; 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 "nsIDOMXULLabeledControlEl.idl"
-interface nsIDOMHTMLInputElement;
-
-[scriptable, uuid(7edd8215-5155-4845-a02f-dc2c08645cb9)]
-interface nsIDOMXULTextBoxElement : nsIDOMXULControlElement
-{
-  // inputField may be any type of editable field, such as an
-  // HTML <input type="text"> or <textarea>
-  readonly attribute nsIDOMNode inputField;
-
-  readonly attribute long textLength;
-  attribute long maxLength;
-  attribute long size;
-  attribute long selectionStart;
-  attribute long selectionEnd;
-
-  attribute DOMString value;
-  attribute DOMString type;
-
-  void select();
-  void setSelectionRange(in long selectionStart,
-                         in long selectionEnd);
-};
-
--- a/toolkit/content/widgets/textbox.xml
+++ b/toolkit/content/widgets/textbox.xml
@@ -27,17 +27,17 @@
     <content>
       <children/>
       <xul:hbox class="textbox-input-box" flex="1" xbl:inherits="context,spellcheck">
         <html:input class="textbox-input" anonid="input"
                     xbl:inherits="value,type,maxlength,disabled,size,readonly,placeholder,tabindex,accesskey,noinitialfocus,mozactionhint,spellcheck"/>
       </xul:hbox>
     </content>
 
-    <implementation implements="nsIDOMXULTextBoxElement, nsIDOMXULLabeledControlElement">
+    <implementation implements="nsIDOMXULLabeledControlElement">
       <!-- nsIDOMXULLabeledControlElement -->
       <field name="crop">""</field>
       <field name="image">""</field>
       <field name="command">""</field>
       <field name="accessKey">""</field>
 
       <field name="mInputField">null</field>
       <field name="mIgnoreClick">false</field>