| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2665 updateName(oldValue, newValue); | 2665 updateName(oldValue, newValue); |
| 2666 else if (name == HTMLNames::forAttr && hasTagName(labelTag)) { | 2666 else if (name == HTMLNames::forAttr && hasTagName(labelTag)) { |
| 2667 TreeScope* scope = treeScope(); | 2667 TreeScope* scope = treeScope(); |
| 2668 if (scope->shouldCacheLabelsByForAttribute()) | 2668 if (scope->shouldCacheLabelsByForAttribute()) |
| 2669 updateLabel(scope, oldValue, newValue); | 2669 updateLabel(scope, oldValue, newValue); |
| 2670 } | 2670 } |
| 2671 | 2671 |
| 2672 if (OwnPtr<MutationObserverInterestGroup> recipients = MutationObserverInter
estGroup::createForAttributesMutation(this, name)) | 2672 if (OwnPtr<MutationObserverInterestGroup> recipients = MutationObserverInter
estGroup::createForAttributesMutation(this, name)) |
| 2673 recipients->enqueueMutationRecord(MutationRecord::createAttributes(this,
name, oldValue)); | 2673 recipients->enqueueMutationRecord(MutationRecord::createAttributes(this,
name, oldValue)); |
| 2674 | 2674 |
| 2675 #if ENABLE(INSPECTOR) | |
| 2676 InspectorInstrumentation::willModifyDOMAttr(document(), this, oldValue, newV
alue); | 2675 InspectorInstrumentation::willModifyDOMAttr(document(), this, oldValue, newV
alue); |
| 2677 #endif | |
| 2678 } | 2676 } |
| 2679 | 2677 |
| 2680 void Element::didAddAttribute(const QualifiedName& name, const AtomicString& val
ue) | 2678 void Element::didAddAttribute(const QualifiedName& name, const AtomicString& val
ue) |
| 2681 { | 2679 { |
| 2682 attributeChanged(name, value); | 2680 attributeChanged(name, value); |
| 2683 InspectorInstrumentation::didModifyDOMAttr(document(), this, name.localName(
), value); | 2681 InspectorInstrumentation::didModifyDOMAttr(document(), this, name.localName(
), value); |
| 2684 dispatchSubtreeModifiedEvent(); | 2682 dispatchSubtreeModifiedEvent(); |
| 2685 } | 2683 } |
| 2686 | 2684 |
| 2687 void Element::didModifyAttribute(const QualifiedName& name, const AtomicString&
value) | 2685 void Element::didModifyAttribute(const QualifiedName& name, const AtomicString&
value) |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3121 return 0; | 3119 return 0; |
| 3122 } | 3120 } |
| 3123 | 3121 |
| 3124 Attribute* UniqueElementData::attributeItem(unsigned index) | 3122 Attribute* UniqueElementData::attributeItem(unsigned index) |
| 3125 { | 3123 { |
| 3126 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3124 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
| 3127 return &m_attributeVector.at(index); | 3125 return &m_attributeVector.at(index); |
| 3128 } | 3126 } |
| 3129 | 3127 |
| 3130 } // namespace WebCore | 3128 } // namespace WebCore |
| OLD | NEW |