mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 12:07:52 +00:00
Bug 1230092. Make nsIDOMCustomEvent no longer inherit from nsIDOMEvent, so that CustomEvent doesn't end up with multiple inheritance from nsIDOMEvent. r=smaug
This commit is contained in:
parent
65d051dc6a
commit
1f6bbd4987
@ -119,8 +119,7 @@ DispatchCustomDOMEvent(Element* aFrameElement, const nsAString& aEventName,
|
||||
// Dispatch the event.
|
||||
// We don't initialize aStatus here, as our callers have already done so.
|
||||
nsresult rv =
|
||||
EventDispatcher::DispatchDOMEvent(aFrameElement, nullptr,
|
||||
static_cast<Event*>(event),
|
||||
EventDispatcher::DispatchDOMEvent(aFrameElement, nullptr, event,
|
||||
presContext, aStatus);
|
||||
return NS_SUCCEEDED(rv);
|
||||
}
|
||||
|
@ -3,11 +3,11 @@
|
||||
* 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"
|
||||
#include "nsISupports.idl"
|
||||
interface nsIVariant;
|
||||
|
||||
[builtinclass, uuid(55fa3a13-4812-45a7-98b7-3be6cec2df43)]
|
||||
interface nsIDOMCustomEvent : nsIDOMEvent
|
||||
[builtinclass, uuid(5be16b03-36f9-4ca8-b2c5-0daadf3cd1b3)]
|
||||
interface nsIDOMCustomEvent : nsISupports
|
||||
{
|
||||
|
||||
readonly attribute nsIVariant detail;
|
||||
|
@ -171,7 +171,7 @@ nsXMLPrettyPrinter::PrettyPrint(nsIDocument* aDocument,
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
event->SetTrusted(true);
|
||||
bool dummy;
|
||||
rv = rootCont->DispatchEvent(static_cast<Event*>(event), &dummy);
|
||||
rv = rootCont->DispatchEvent(event, &dummy);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Observe the document so we know when to switch to "normal" view
|
||||
|
@ -1519,7 +1519,7 @@ nsPrintEngine::FirePrintingErrorEvent(nsresult aPrintError)
|
||||
{
|
||||
nsCOMPtr<nsIContentViewer> cv = do_QueryInterface(mDocViewerPrint);
|
||||
nsCOMPtr<nsIDocument> doc = cv->GetDocument();
|
||||
nsCOMPtr<nsIDOMCustomEvent> event =
|
||||
RefPtr<CustomEvent> event =
|
||||
NS_NewDOMCustomEvent(doc, nullptr, nullptr);
|
||||
|
||||
MOZ_ASSERT(event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user