Bug 1031051: Part 4 - Remove ReplaceElementEvent. r=khuey,wchen

This commit is contained in:
Kyle Huey 2014-06-30 16:01:11 -07:00
parent 9fdab2c0a8
commit ee70914a12
10 changed files with 0 additions and 57 deletions

View File

@ -147,7 +147,6 @@
#include "nsEscape.h"
#include "nsObjectLoadingContent.h"
#include "nsHtml5TreeOpExecutor.h"
#include "nsIDOMElementReplaceEvent.h"
#include "mozilla/dom/HTMLLinkElement.h"
#include "mozilla/dom/HTMLMediaElement.h"
#ifdef MOZ_WEBRTC

View File

@ -803,8 +803,6 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
if (aEventType.LowerCaseEqualsLiteral("commandevent") ||
aEventType.LowerCaseEqualsLiteral("commandevents"))
return NS_NewDOMCommandEvent(aDOMEvent, aOwner, aPresContext, nullptr);
if (aEventType.LowerCaseEqualsLiteral("elementreplace"))
return NS_NewDOMElementReplaceEvent(aDOMEvent, aOwner, aPresContext, nullptr);
if (aEventType.LowerCaseEqualsLiteral("datacontainerevent") ||
aEventType.LowerCaseEqualsLiteral("datacontainerevents"))
return NS_NewDOMDataContainerEvent(aDOMEvent, aOwner, aPresContext, nullptr);

View File

@ -163,10 +163,6 @@ const kEventConstructors = {
return new ErrorEvent(aName, aProps);
},
},
ElementReplaceEvent: { create: function (aName, aProps) {
return new ElementReplaceEvent(aName, aProps);
},
},
FocusEvent: { create: function (aName, aProps) {
return new FocusEvent(aName, aProps);
},

View File

@ -16,7 +16,6 @@ XPIDL_SOURCES += [
'nsIDOMDeviceOrientationEvent.idl',
'nsIDOMDOMTransactionEvent.idl',
'nsIDOMDragEvent.idl',
'nsIDOMElementReplaceEvent.idl',
'nsIDOMEvent.idl',
'nsIDOMEventListener.idl',
'nsIDOMEventTarget.idl',

View File

@ -1,19 +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 "nsIDOMEvent.idl"
interface nsIDOMElement;
[builtinclass, uuid(19a31767-54bf-4044-8769-cd172e37eca2)]
interface nsIDOMElementReplaceEvent : nsIDOMEvent
{
readonly attribute nsIDOMElement upgrade;
void initElementReplaceEvent(in DOMString typeArg,
in boolean canBubbleArg,
in boolean canCancelArg,
in nsIDOMElement upgrade);
};

View File

@ -351,8 +351,6 @@ var interfaceNamesInGlobalScope =
"DynamicsCompressorNode",
// IMPORTANT: Do not change this list without review from a DOM peer!
"Element",
// IMPORTANT: Do not change this list without review from a DOM peer!
"ElementReplaceEvent",
// IMPORTANT: Do not change this list without review from a DOM peer!
"ErrorEvent",
// IMPORTANT: Do not change this list without review from a DOM peer!

View File

@ -1,23 +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/.
*/
[Constructor(DOMString type, optional ElementReplaceEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
interface ElementReplaceEvent : Event
{
readonly attribute Element? upgrade;
// initElementReplaceEvent is a Gecko specific deprecated method.
[Throws]
void initElementReplaceEvent(DOMString type,
boolean canBubble,
boolean cancelable,
Element? upgrade);
};
dictionary ElementReplaceEventInit : EventInit
{
Element? upgrade = null;
};

View File

@ -535,7 +535,6 @@ WEBIDL_FILES += [
'DeviceOrientationEvent.webidl',
'DeviceStorageChangeEvent.webidl',
'DOMTransactionEvent.webidl',
'ElementReplaceEvent.webidl',
'HashChangeEvent.webidl',
'MozApplicationEvent.webidl',
'MozSettingsEvent.webidl',

View File

@ -19,7 +19,6 @@ simple_events = [
'StyleRuleChangeEvent',
'StyleSheetChangeEvent',
'StyleSheetApplicableStateChangeEvent',
'ElementReplaceEvent',
#ifdef MOZ_WEBSPEECH
'SpeechSynthesisEvent',
#endif

View File

@ -43,7 +43,6 @@
#include "nsIDOMDocumentXBL.h"
#include "nsIDOMDragEvent.h"
#include "nsIDOMElement.h"
#include "nsIDOMElementReplaceEvent.h"
#include "nsIDOMEvent.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMFileList.h"
@ -201,7 +200,6 @@
#include "mozilla/dom/DocumentBinding.h"
#include "mozilla/dom/DragEventBinding.h"
#include "mozilla/dom/ElementBinding.h"
#include "mozilla/dom/ElementReplaceEventBinding.h"
#include "mozilla/dom/EventBinding.h"
#include "mozilla/dom/EventTargetBinding.h"
#include "mozilla/dom/FileListBinding.h"
@ -409,7 +407,6 @@ const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] =
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIDOMDocumentXBL, Document),
DEFINE_SHIM(DragEvent),
DEFINE_SHIM(Element),
DEFINE_SHIM(ElementReplaceEvent),
DEFINE_SHIM(Event),
DEFINE_SHIM(EventTarget),
DEFINE_SHIM(FileReader),