| 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 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef Element_h | 25 #ifndef Element_h |
| 26 #define Element_h | 26 #define Element_h |
| 27 | 27 |
| 28 #include "core/CSSPropertyNames.h" | 28 #include "core/CSSPropertyNames.h" |
| 29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
| 30 #include "core/HTMLNames.h" | 30 #include "core/HTMLNames.h" |
| 31 #include "core/css/CSSPrimitiveValue.h" | 31 #include "core/css/CSSPrimitiveValue.h" |
| 32 #include "core/css/CSSSelector.h" | 32 #include "core/css/CSSSelector.h" |
| 33 #include "core/dom/AXObjectCache.h" |
| 33 #include "core/dom/Attribute.h" | 34 #include "core/dom/Attribute.h" |
| 34 #include "core/dom/ContainerNode.h" | 35 #include "core/dom/ContainerNode.h" |
| 35 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" |
| 36 #include "core/dom/ElementData.h" | 37 #include "core/dom/ElementData.h" |
| 37 #include "core/dom/SpaceSplitString.h" | 38 #include "core/dom/SpaceSplitString.h" |
| 38 #include "core/html/CollectionType.h" | 39 #include "core/html/CollectionType.h" |
| 39 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
| 40 #include "public/platform/WebFocusType.h" | 41 #include "public/platform/WebFocusType.h" |
| 41 | 42 |
| 42 namespace blink { | 43 namespace blink { |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 return InsertionDone; | 795 return InsertionDone; |
| 795 } | 796 } |
| 796 | 797 |
| 797 inline void Node::removedFrom(ContainerNode* insertionPoint) | 798 inline void Node::removedFrom(ContainerNode* insertionPoint) |
| 798 { | 799 { |
| 799 ASSERT(insertionPoint->inDocument() || isContainerNode()); | 800 ASSERT(insertionPoint->inDocument() || isContainerNode()); |
| 800 if (insertionPoint->inDocument()) | 801 if (insertionPoint->inDocument()) |
| 801 clearFlag(InDocumentFlag); | 802 clearFlag(InDocumentFlag); |
| 802 if (isInShadowTree() && !treeScope().rootNode().isShadowRoot()) | 803 if (isInShadowTree() && !treeScope().rootNode().isShadowRoot()) |
| 803 clearFlag(IsInShadowTreeFlag); | 804 clearFlag(IsInShadowTreeFlag); |
| 805 if (AXObjectCache* cache = document().existingAXObjectCache()) |
| 806 cache->remove(this); |
| 804 } | 807 } |
| 805 | 808 |
| 806 inline void Element::invalidateStyleAttribute() | 809 inline void Element::invalidateStyleAttribute() |
| 807 { | 810 { |
| 808 ASSERT(elementData()); | 811 ASSERT(elementData()); |
| 809 elementData()->m_styleAttributeIsDirty = true; | 812 elementData()->m_styleAttributeIsDirty = true; |
| 810 } | 813 } |
| 811 | 814 |
| 812 inline const StylePropertySet* Element::presentationAttributeStyle() | 815 inline const StylePropertySet* Element::presentationAttributeStyle() |
| 813 { | 816 { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 880 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 878 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 881 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 879 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 882 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 880 { \ | 883 { \ |
| 881 return adoptRefWillBeNoop(new T(tagName, document)); \ | 884 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 882 } | 885 } |
| 883 | 886 |
| 884 } // namespace | 887 } // namespace |
| 885 | 888 |
| 886 #endif // Element_h | 889 #endif // Element_h |
| OLD | NEW |