Bug 1456703 - Remove nsIDOMXULTextBoxElement r=enndeakin+6102
authorBrian Grinstead <bgrinstead@mozilla.com>
Thu, 26 Apr 2018 15:17:00 -0700
changeset 415925 ef26c00223691ade20d344707e30220580d664aa
parent 415924 3e0ca85e69704884e8ff91b0ab4cbfa517d5bbd5
child 415926 a8fef63084795665c01e9753fb8647b71e9c0331
push id33911
push usercsabou@mozilla.com
push dateFri, 27 Apr 2018 10:01:39 +0000
treeherdermozilla-central@822936017145 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersenndeakin
bugs1456703
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1456703 - Remove nsIDOMXULTextBoxElement r=enndeakin+6102 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>