| 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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 shouldInvalidateStyle |= testShouldInvalidateStyle && styleResolver->hasSele
ctorForAttribute(name.localName()); | 877 shouldInvalidateStyle |= testShouldInvalidateStyle && styleResolver->hasSele
ctorForAttribute(name.localName()); |
| 878 | 878 |
| 879 invalidateNodeListCachesInAncestors(&name, this); | 879 invalidateNodeListCachesInAncestors(&name, this); |
| 880 | 880 |
| 881 // If there is currently no StyleResolver, we can't be sure that this attrib
ute change won't affect style. | 881 // If there is currently no StyleResolver, we can't be sure that this attrib
ute change won't affect style. |
| 882 shouldInvalidateStyle |= !styleResolver; | 882 shouldInvalidateStyle |= !styleResolver; |
| 883 | 883 |
| 884 if (shouldInvalidateStyle) | 884 if (shouldInvalidateStyle) |
| 885 setNeedsStyleRecalc(); | 885 setNeedsStyleRecalc(); |
| 886 | 886 |
| 887 if (AXObjectCache* cache = document()->existingAXObjectCache()) | 887 if (AXObjectCache::accessibilityEnabled()) |
| 888 cache->handleAttributeChanged(name, this); | 888 document()->axObjectCache()->handleAttributeChanged(name, this); |
| 889 } | 889 } |
| 890 | 890 |
| 891 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue) | 891 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue) |
| 892 { | 892 { |
| 893 #if ENABLE(CUSTOM_ELEMENTS) | 893 #if ENABLE(CUSTOM_ELEMENTS) |
| 894 if (name == isAttr) { | 894 if (name == isAttr) { |
| 895 if (CustomElementRegistry* registry = document()->registry()) | 895 if (CustomElementRegistry* registry = document()->registry()) |
| 896 registry->didGiveTypeExtension(this); | 896 registry->didGiveTypeExtension(this); |
| 897 } | 897 } |
| 898 #endif | 898 #endif |
| (...skipping 2242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3141 return 0; | 3141 return 0; |
| 3142 } | 3142 } |
| 3143 | 3143 |
| 3144 Attribute* UniqueElementData::attributeItem(unsigned index) | 3144 Attribute* UniqueElementData::attributeItem(unsigned index) |
| 3145 { | 3145 { |
| 3146 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3146 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
| 3147 return &m_attributeVector.at(index); | 3147 return &m_attributeVector.at(index); |
| 3148 } | 3148 } |
| 3149 | 3149 |
| 3150 } // namespace WebCore | 3150 } // namespace WebCore |
| OLD | NEW |