mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 1447472 part 1. Remove nsIDOMNotifyPaintEvent. r=qdot
MozReview-Commit-ID: J019gX9963D
This commit is contained in:
parent
9e7585ff47
commit
5f1deca99d
@ -35,13 +35,6 @@ NotifyPaintEvent::NotifyPaintEvent(EventTarget* aOwner,
|
||||
mTimeStamp = aTimeStamp;
|
||||
}
|
||||
|
||||
NS_INTERFACE_MAP_BEGIN(NotifyPaintEvent)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIDOMNotifyPaintEvent)
|
||||
NS_INTERFACE_MAP_END_INHERITING(Event)
|
||||
|
||||
NS_IMPL_ADDREF_INHERITED(NotifyPaintEvent, Event)
|
||||
NS_IMPL_RELEASE_INHERITED(NotifyPaintEvent, Event)
|
||||
|
||||
nsRegion
|
||||
NotifyPaintEvent::GetRegion(SystemCallerGuarantee)
|
||||
{
|
||||
|
@ -11,7 +11,6 @@
|
||||
#include "mozilla/dom/Event.h"
|
||||
#include "mozilla/dom/BindingDeclarations.h"
|
||||
#include "mozilla/dom/NotifyPaintEventBinding.h"
|
||||
#include "nsIDOMNotifyPaintEvent.h"
|
||||
#include "nsPresContext.h"
|
||||
|
||||
namespace mozilla {
|
||||
@ -21,8 +20,7 @@ class DOMRect;
|
||||
class DOMRectList;
|
||||
class PaintRequestList;
|
||||
|
||||
class NotifyPaintEvent : public Event,
|
||||
public nsIDOMNotifyPaintEvent
|
||||
class NotifyPaintEvent : public Event
|
||||
{
|
||||
|
||||
public:
|
||||
@ -34,9 +32,7 @@ public:
|
||||
uint64_t aTransactionId,
|
||||
DOMHighResTimeStamp aTimeStamp);
|
||||
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
NS_DECL_NSIDOMNOTIFYPAINTEVENT
|
||||
NS_INLINE_DECL_REFCOUNTING_INHERITED(NotifyPaintEvent, Event)
|
||||
|
||||
NS_IMETHOD_(void) Serialize(IPC::Message* aMsg, bool aSerializeInterfaceType) override;
|
||||
NS_IMETHOD_(bool) Deserialize(const IPC::Message* aMsg, PickleIterator* aIter) override;
|
||||
|
@ -12,7 +12,6 @@ XPIDL_SOURCES += [
|
||||
'nsIDOMEvent.idl',
|
||||
'nsIDOMEventListener.idl',
|
||||
'nsIDOMEventTarget.idl',
|
||||
'nsIDOMNotifyPaintEvent.idl',
|
||||
'nsIDOMNSEvent.idl',
|
||||
]
|
||||
|
||||
|
@ -1,12 +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 "nsISupports.idl"
|
||||
|
||||
[builtinclass, uuid(63f573a0-3e4e-474b-a0c2-bb4ca93febaa)]
|
||||
interface nsIDOMNotifyPaintEvent : nsISupports
|
||||
{
|
||||
};
|
||||
|
@ -303,7 +303,7 @@ function waitForContentPresented(browser, lastTransactionId) {
|
||||
return new Promise((resolve) => {
|
||||
let win = browser.ownerGlobal;
|
||||
win.addEventListener("MozAfterPaint", function onPaint(event) {
|
||||
if (event instanceof Ci.nsIDOMNotifyPaintEvent) {
|
||||
if (ChromeUtils.getClassName(event) === "NotifyPaintEvent") {
|
||||
TalosParentProfiler.mark("Content saw transaction id: " + event.transactionId);
|
||||
if (event.transactionId > lastTransactionId) {
|
||||
win.removeEventListener("MozAfterPaint", onPaint);
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include "nsIDOMHTMLInputElement.h"
|
||||
#include "nsIDOMNode.h"
|
||||
#include "nsIDOMNodeList.h"
|
||||
#include "nsIDOMNotifyPaintEvent.h"
|
||||
#include "nsIDOMNSEvent.h"
|
||||
#include "nsIDOMOfflineResourceList.h"
|
||||
#include "nsIDOMParser.h"
|
||||
@ -66,7 +65,6 @@
|
||||
#include "mozilla/dom/MessageManagerBinding.h"
|
||||
#include "mozilla/dom/NodeListBinding.h"
|
||||
#include "mozilla/dom/NodeBinding.h"
|
||||
#include "mozilla/dom/NotifyPaintEventBinding.h"
|
||||
#include "mozilla/dom/EventBinding.h"
|
||||
#include "mozilla/dom/OfflineResourceListBinding.h"
|
||||
#include "mozilla/dom/PositionErrorBinding.h"
|
||||
@ -158,7 +156,6 @@ const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] =
|
||||
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIMessageSender, MessageSender),
|
||||
DEFINE_SHIM(NodeList),
|
||||
DEFINE_SHIM(Node),
|
||||
DEFINE_SHIM(NotifyPaintEvent),
|
||||
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIDOMNSEvent, Event),
|
||||
DEFINE_SHIM(OfflineResourceList),
|
||||
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIDOMParser, DOMParser),
|
||||
|
Loading…
x
Reference in New Issue
Block a user