| 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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 if (shouldInvalidateStyle) | 946 if (shouldInvalidateStyle) |
| 947 setNeedsStyleRecalc(); | 947 setNeedsStyleRecalc(); |
| 948 | 948 |
| 949 if (AXObjectCache* cache = document()->existingAXObjectCache()) | 949 if (AXObjectCache* cache = document()->existingAXObjectCache()) |
| 950 cache->handleAttributeChanged(name, this); | 950 cache->handleAttributeChanged(name, this); |
| 951 } | 951 } |
| 952 | 952 |
| 953 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue, AttributeModificationReason reason) | 953 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue, AttributeModificationReason reason) |
| 954 { | 954 { |
| 955 if (name == isAttr) | 955 if (name == isAttr) |
| 956 CustomElementRegistrationContext::setTypeExtension(this, newValue); | 956 CustomElementRegistrationContext::setTypeExtension(this, newValue, reaso
n == ModifiedDirectly ? CustomElementRegistrationContext::CreatedByParser : Cust
omElementRegistrationContext::NotCreatedByParser); |
| 957 attributeChanged(name, newValue, reason); | 957 attributeChanged(name, newValue, reason); |
| 958 } | 958 } |
| 959 | 959 |
| 960 template <typename CharacterType> | 960 template <typename CharacterType> |
| 961 static inline bool classStringHasClassName(const CharacterType* characters, unsi
gned length) | 961 static inline bool classStringHasClassName(const CharacterType* characters, unsi
gned length) |
| 962 { | 962 { |
| 963 ASSERT(length > 0); | 963 ASSERT(length > 0); |
| 964 | 964 |
| 965 unsigned i = 0; | 965 unsigned i = 0; |
| 966 do { | 966 do { |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1777 styleResolver->pushParentElement(this); | 1777 styleResolver->pushParentElement(this); |
| 1778 } | 1778 } |
| 1779 | 1779 |
| 1780 void Element::finishParsingChildren() | 1780 void Element::finishParsingChildren() |
| 1781 { | 1781 { |
| 1782 ContainerNode::finishParsingChildren(); | 1782 ContainerNode::finishParsingChildren(); |
| 1783 setIsParsingChildrenFinished(); | 1783 setIsParsingChildrenFinished(); |
| 1784 checkForSiblingStyleChanges(this, renderStyle(), true, lastChild(), 0, 0); | 1784 checkForSiblingStyleChanges(this, renderStyle(), true, lastChild(), 0, 0); |
| 1785 if (StyleResolver* styleResolver = document()->styleResolverIfExists()) | 1785 if (StyleResolver* styleResolver = document()->styleResolverIfExists()) |
| 1786 styleResolver->popParentElement(this); | 1786 styleResolver->popParentElement(this); |
| 1787 if (isCustomElement()) |
| 1788 CustomElement::didFinishParsingChildren(this); |
| 1787 } | 1789 } |
| 1788 | 1790 |
| 1789 #ifndef NDEBUG | 1791 #ifndef NDEBUG |
| 1790 void Element::formatForDebugger(char* buffer, unsigned length) const | 1792 void Element::formatForDebugger(char* buffer, unsigned length) const |
| 1791 { | 1793 { |
| 1792 StringBuilder result; | 1794 StringBuilder result; |
| 1793 String s; | 1795 String s; |
| 1794 | 1796 |
| 1795 result.append(nodeName()); | 1797 result.append(nodeName()); |
| 1796 | 1798 |
| (...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3645 return 0; | 3647 return 0; |
| 3646 } | 3648 } |
| 3647 | 3649 |
| 3648 Attribute* UniqueElementData::attributeItem(unsigned index) | 3650 Attribute* UniqueElementData::attributeItem(unsigned index) |
| 3649 { | 3651 { |
| 3650 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3652 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
| 3651 return &m_attributeVector.at(index); | 3653 return &m_attributeVector.at(index); |
| 3652 } | 3654 } |
| 3653 | 3655 |
| 3654 } // namespace WebCore | 3656 } // namespace WebCore |
| OLD | NEW |