| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
| 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
| 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 MutationEvent::~MutationEvent() | 44 MutationEvent::~MutationEvent() |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 | 47 |
| 48 void MutationEvent::initMutationEvent(const AtomicString& type, bool canBubble,
bool cancelable, Node* relatedNode, | 48 void MutationEvent::initMutationEvent(const AtomicString& type, bool canBubble,
bool cancelable, Node* relatedNode, |
| 49 const String& prevValue, const String& new
Value, | 49 const String& prevValue, const String& new
Value, |
| 50 const String& attrName, unsigned short att
rChange) | 50 const String& attrName, unsigned short att
rChange) |
| 51 { | 51 { |
| 52 if (dispatched()) | 52 if (isBeingDispatched()) |
| 53 return; | 53 return; |
| 54 | 54 |
| 55 initEvent(type, canBubble, cancelable); | 55 initEvent(type, canBubble, cancelable); |
| 56 | 56 |
| 57 m_relatedNode = relatedNode; | 57 m_relatedNode = relatedNode; |
| 58 m_prevValue = prevValue; | 58 m_prevValue = prevValue; |
| 59 m_newValue = newValue; | 59 m_newValue = newValue; |
| 60 m_attrName = attrName; | 60 m_attrName = attrName; |
| 61 m_attrChange = attrChange; | 61 m_attrChange = attrChange; |
| 62 } | 62 } |
| 63 | 63 |
| 64 const AtomicString& MutationEvent::interfaceName() const | 64 const AtomicString& MutationEvent::interfaceName() const |
| 65 { | 65 { |
| 66 return EventNames::MutationEvent; | 66 return EventNames::MutationEvent; |
| 67 } | 67 } |
| 68 | 68 |
| 69 DEFINE_TRACE(MutationEvent) | 69 DEFINE_TRACE(MutationEvent) |
| 70 { | 70 { |
| 71 visitor->trace(m_relatedNode); | 71 visitor->trace(m_relatedNode); |
| 72 Event::trace(visitor); | 72 Event::trace(visitor); |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| OLD | NEW |