Chromium Code Reviews| 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 21 matching lines...) Expand all Loading... | |
| 32 #include "core/css/CSSSelector.h" | 32 #include "core/css/CSSSelector.h" |
| 33 #include "core/dom/Attribute.h" | 33 #include "core/dom/Attribute.h" |
| 34 #include "core/dom/ContainerNode.h" | 34 #include "core/dom/ContainerNode.h" |
| 35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
| 36 #include "core/dom/ElementData.h" | 36 #include "core/dom/ElementData.h" |
| 37 #include "core/dom/SpaceSplitString.h" | 37 #include "core/dom/SpaceSplitString.h" |
| 38 #include "core/html/CollectionType.h" | 38 #include "core/html/CollectionType.h" |
| 39 #include "platform/heap/Handle.h" | 39 #include "platform/heap/Handle.h" |
| 40 #include "public/platform/WebFocusType.h" | 40 #include "public/platform/WebFocusType.h" |
| 41 | 41 |
| 42 #if ENABLE(OILPAN) | |
| 43 #include "core/dom/AXObjectCache.h" | |
| 44 #endif | |
| 45 | |
| 42 namespace blink { | 46 namespace blink { |
| 43 | 47 |
| 44 class ElementAnimations; | 48 class ElementAnimations; |
| 45 class Attr; | 49 class Attr; |
| 46 class Attribute; | 50 class Attribute; |
| 47 class CSSStyleDeclaration; | 51 class CSSStyleDeclaration; |
| 48 class ClientRect; | 52 class ClientRect; |
| 49 class ClientRectList; | 53 class ClientRectList; |
| 50 class CustomElementDefinition; | 54 class CustomElementDefinition; |
| 51 class DOMStringMap; | 55 class DOMStringMap; |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 794 return InsertionDone; | 798 return InsertionDone; |
| 795 } | 799 } |
| 796 | 800 |
| 797 inline void Node::removedFrom(ContainerNode* insertionPoint) | 801 inline void Node::removedFrom(ContainerNode* insertionPoint) |
| 798 { | 802 { |
| 799 ASSERT(insertionPoint->inDocument() || isContainerNode()); | 803 ASSERT(insertionPoint->inDocument() || isContainerNode()); |
| 800 if (insertionPoint->inDocument()) | 804 if (insertionPoint->inDocument()) |
| 801 clearFlag(InDocumentFlag); | 805 clearFlag(InDocumentFlag); |
| 802 if (isInShadowTree() && !treeScope().rootNode().isShadowRoot()) | 806 if (isInShadowTree() && !treeScope().rootNode().isShadowRoot()) |
| 803 clearFlag(IsInShadowTreeFlag); | 807 clearFlag(IsInShadowTreeFlag); |
| 808 #if ENABLE(OILPAN) | |
| 809 if (AXObjectCache* cache = document().existingAXObjectCache()) | |
| 810 cache->remove(this); | |
|
haraken
2015/06/23 06:33:29
Can we remove cache->remove() from TreeScopeAdopte
haraken
2015/06/23 06:47:22
Or, in oilpan, isn't the cache->remove() in TreeSc
keishi
2015/06/24 05:08:21
Removed excess remove() calls. Node::removeFrom an
| |
| 811 #endif | |
| 804 } | 812 } |
| 805 | 813 |
| 806 inline void Element::invalidateStyleAttribute() | 814 inline void Element::invalidateStyleAttribute() |
| 807 { | 815 { |
| 808 ASSERT(elementData()); | 816 ASSERT(elementData()); |
| 809 elementData()->m_styleAttributeIsDirty = true; | 817 elementData()->m_styleAttributeIsDirty = true; |
| 810 } | 818 } |
| 811 | 819 |
| 812 inline const StylePropertySet* Element::presentationAttributeStyle() | 820 inline const StylePropertySet* Element::presentationAttributeStyle() |
| 813 { | 821 { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 877 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 885 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 878 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 886 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 879 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 887 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
| 880 { \ | 888 { \ |
| 881 return adoptRefWillBeNoop(new T(tagName, document)); \ | 889 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 882 } | 890 } |
| 883 | 891 |
| 884 } // namespace | 892 } // namespace |
| 885 | 893 |
| 886 #endif // Element_h | 894 #endif // Element_h |
| OLD | NEW |