Index: Source/core/events/MutationEvent.h |
diff --git a/Source/core/events/MutationEvent.h b/Source/core/events/MutationEvent.h |
index 8969796626d86ed8c4b8a2cd6934838c09887603..4a17aeb1841b6c6e03a622c0d29c16a2914ca0ff 100644 |
--- a/Source/core/events/MutationEvent.h |
+++ b/Source/core/events/MutationEvent.h |
@@ -29,54 +29,51 @@ |
namespace blink { |
- class MutationEvent FINAL : public Event { |
- public: |
- virtual ~MutationEvent(); |
+class MutationEvent FINAL : public Event { |
+ DEFINE_WRAPPERTYPEINFO(); |
+public: |
+ virtual ~MutationEvent(); |
- enum attrChangeType { |
- MODIFICATION = 1, |
- ADDITION = 2, |
- REMOVAL = 3 |
- }; |
+ enum AttrChangeType { |
+ MODIFICATION = 1, // NOLINT |
+ ADDITION = 2, // NOLINT |
+ REMOVAL = 3 // NOLINT |
+ }; |
- static PassRefPtrWillBeRawPtr<MutationEvent> create() |
- { |
- return adoptRefWillBeNoop(new MutationEvent); |
- } |
+ static PassRefPtrWillBeRawPtr<MutationEvent> create() |
+ { |
+ return adoptRefWillBeNoop(new MutationEvent); |
+ } |
- static PassRefPtrWillBeRawPtr<MutationEvent> create( |
- const AtomicString& type, bool canBubble, PassRefPtrWillBeRawPtr<Node> relatedNode = nullptr, |
- const String& prevValue = String(), const String& newValue = String(), const String& attrName = String(), unsigned short attrChange = 0) |
- { |
- return adoptRefWillBeNoop(new MutationEvent(type, canBubble, false, relatedNode, prevValue, newValue, attrName, attrChange)); |
- } |
+ static PassRefPtrWillBeRawPtr<MutationEvent> create( |
+ const AtomicString& type, bool canBubble, PassRefPtrWillBeRawPtr<Node> relatedNode = nullptr, |
+ const String& prevValue = String(), const String& newValue = String(), const String& attrName = String(), unsigned short attrChange = 0) |
+ { |
+ return adoptRefWillBeNoop(new MutationEvent(type, canBubble, false, relatedNode, prevValue, newValue, attrName, attrChange)); |
+ } |
- void initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Node> relatedNode, |
- const String& prevValue, const String& newValue, |
- const String& attrName, unsigned short attrChange); |
+ void initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Node> relatedNode, const String& prevValue, const String& newValue, const String& attrName, unsigned short attrChange); |
- Node* relatedNode() const { return m_relatedNode.get(); } |
- String prevValue() const { return m_prevValue; } |
- String newValue() const { return m_newValue; } |
- String attrName() const { return m_attrName; } |
- unsigned short attrChange() const { return m_attrChange; } |
+ Node* relatedNode() const { return m_relatedNode.get(); } |
+ String prevValue() const { return m_prevValue; } |
+ String newValue() const { return m_newValue; } |
+ String attrName() const { return m_attrName; } |
+ unsigned short attrChange() const { return m_attrChange; } |
- virtual const AtomicString& interfaceName() const OVERRIDE; |
+ virtual const AtomicString& interfaceName() const OVERRIDE; |
- virtual void trace(Visitor*) OVERRIDE; |
+ virtual void trace(Visitor*) OVERRIDE; |
- private: |
- MutationEvent(); |
- MutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Node> relatedNode, |
- const String& prevValue, const String& newValue, |
- const String& attrName, unsigned short attrChange); |
+private: |
+ MutationEvent(); |
+ MutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Node> relatedNode, const String& prevValue, const String& newValue, const String& attrName, unsigned short attrChange); |
- RefPtrWillBeMember<Node> m_relatedNode; |
- String m_prevValue; |
- String m_newValue; |
- String m_attrName; |
- unsigned short m_attrChange; |
- }; |
+ RefPtrWillBeMember<Node> m_relatedNode; |
+ String m_prevValue; |
+ String m_newValue; |
+ String m_attrName; |
+ unsigned short m_attrChange; |
+}; |
} // namespace blink |