Index: Source/WebCore/dom/Element.h |
diff --git a/Source/WebCore/dom/Element.h b/Source/WebCore/dom/Element.h |
index cd6d014399bdb13ec61adb69140ec3163f9bbe30..4186604712fbd9ed4bb9c2dd2ce1f33efb4f76f7 100644 |
--- a/Source/WebCore/dom/Element.h |
+++ b/Source/WebCore/dom/Element.h |
@@ -372,8 +372,13 @@ public: |
// For exposing to DOM only. |
NamedNodeMap* attributes() const; |
+ enum AttributeModificationReason { |
+ ModifiedDirectly, |
+ ModifiedByCloning |
+ }; |
+ |
// This method is called whenever an attribute is added, changed or removed. |
- virtual void attributeChanged(const QualifiedName&, const AtomicString&); |
+ virtual void attributeChanged(const QualifiedName&, const AtomicString&, AttributeModificationReason = ModifiedDirectly); |
virtual void parseAttribute(const QualifiedName&, const AtomicString&) { } |
// Only called by the parser immediately after element construction. |
@@ -677,7 +682,7 @@ private: |
void setAttributeInternal(size_t index, const QualifiedName&, const AtomicString& value, SynchronizationOfLazyAttribute); |
void addAttributeInternal(const QualifiedName&, const AtomicString& value, SynchronizationOfLazyAttribute); |
void removeAttributeInternal(size_t index, SynchronizationOfLazyAttribute); |
- void attributeChangedFromParserOrByCloning(const QualifiedName&, const AtomicString&); |
+ void attributeChangedFromParserOrByCloning(const QualifiedName&, const AtomicString&, AttributeModificationReason); |
#ifndef NDEBUG |
virtual void formatForDebugger(char* buffer, unsigned length) const; |