From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/dom/MutationEvent.cpp | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'Source/WebCore/dom/MutationEvent.cpp') diff --git a/Source/WebCore/dom/MutationEvent.cpp b/Source/WebCore/dom/MutationEvent.cpp index a61ef767e..6422ad7ba 100644 --- a/Source/WebCore/dom/MutationEvent.cpp +++ b/Source/WebCore/dom/MutationEvent.cpp @@ -23,35 +23,19 @@ #include "config.h" #include "MutationEvent.h" - namespace WebCore { -MutationEvent::MutationEvent() - : m_attrChange(0) -{ -} - -MutationEvent::MutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr relatedNode, - const String& prevValue, const String& newValue, - const String& attrName, unsigned short attrChange) +MutationEvent::MutationEvent(const AtomicString& type, bool canBubble, bool cancelable, Node* relatedNode, const String& prevValue, const String& newValue) : Event(type, canBubble, cancelable) , m_relatedNode(relatedNode) , m_prevValue(prevValue) , m_newValue(newValue) - , m_attrName(attrName) - , m_attrChange(attrChange) -{ -} - -MutationEvent::~MutationEvent() { } -void MutationEvent::initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr relatedNode, - const String& prevValue, const String& newValue, - const String& attrName, unsigned short attrChange) +void MutationEvent::initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, Node* relatedNode, const String& prevValue, const String& newValue, const String& attrName, unsigned short attrChange) { - if (dispatched()) + if (isBeingDispatched()) return; initEvent(type, canBubble, cancelable); -- cgit v1.2.1