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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 | 870 |
871 if (shouldInvalidateStyle) | 871 if (shouldInvalidateStyle) |
872 setNeedsStyleRecalc(); | 872 setNeedsStyleRecalc(); |
873 | 873 |
874 if (AXObjectCache* cache = document()->existingAXObjectCache()) | 874 if (AXObjectCache* cache = document()->existingAXObjectCache()) |
875 cache->handleAttributeChanged(name, this); | 875 cache->handleAttributeChanged(name, this); |
876 } | 876 } |
877 | 877 |
878 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue, AttributeModificationReason reason) | 878 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue, AttributeModificationReason reason) |
879 { | 879 { |
880 #if ENABLE(CUSTOM_ELEMENTS) | |
881 if (name == isAttr) { | 880 if (name == isAttr) { |
882 if (CustomElementRegistry* registry = document()->registry()) | 881 if (CustomElementRegistry* registry = document()->registry()) |
883 registry->didGiveTypeExtension(this); | 882 registry->didGiveTypeExtension(this); |
884 } | 883 } |
885 #endif | |
886 attributeChanged(name, newValue, reason); | 884 attributeChanged(name, newValue, reason); |
887 } | 885 } |
888 | 886 |
889 template <typename CharacterType> | 887 template <typename CharacterType> |
890 static inline bool classStringHasClassName(const CharacterType* characters, unsi
gned length) | 888 static inline bool classStringHasClassName(const CharacterType* characters, unsi
gned length) |
891 { | 889 { |
892 ASSERT(length > 0); | 890 ASSERT(length > 0); |
893 | 891 |
894 unsigned i = 0; | 892 unsigned i = 0; |
895 do { | 893 do { |
(...skipping 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3113 return 0; | 3111 return 0; |
3114 } | 3112 } |
3115 | 3113 |
3116 Attribute* UniqueElementData::attributeItem(unsigned index) | 3114 Attribute* UniqueElementData::attributeItem(unsigned index) |
3117 { | 3115 { |
3118 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3116 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
3119 return &m_attributeVector.at(index); | 3117 return &m_attributeVector.at(index); |
3120 } | 3118 } |
3121 | 3119 |
3122 } // namespace WebCore | 3120 } // namespace WebCore |
OLD | NEW |