Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Side by Side Diff: Source/core/dom/Element.h

Issue 1072273006: Oilpan: Prepare moving AXObject to heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 return InsertionDone; 800 return InsertionDone;
797 } 801 }
798 802
799 inline void Node::removedFrom(ContainerNode* insertionPoint) 803 inline void Node::removedFrom(ContainerNode* insertionPoint)
800 { 804 {
801 ASSERT(insertionPoint->inDocument() || isContainerNode()); 805 ASSERT(insertionPoint->inDocument() || isContainerNode());
802 if (insertionPoint->inDocument()) 806 if (insertionPoint->inDocument())
803 clearFlag(InDocumentFlag); 807 clearFlag(InDocumentFlag);
804 if (isInShadowTree() && !treeScope().rootNode().isShadowRoot()) 808 if (isInShadowTree() && !treeScope().rootNode().isShadowRoot())
805 clearFlag(IsInShadowTreeFlag); 809 clearFlag(IsInShadowTreeFlag);
810 #if ENABLE(OILPAN)
811 if (AXObjectCache* cache = document().existingAXObjectCache())
812 cache->remove(this);
813 #endif
806 } 814 }
807 815
808 inline void Element::invalidateStyleAttribute() 816 inline void Element::invalidateStyleAttribute()
809 { 817 {
810 ASSERT(elementData()); 818 ASSERT(elementData());
811 elementData()->m_styleAttributeIsDirty = true; 819 elementData()->m_styleAttributeIsDirty = true;
812 } 820 }
813 821
814 inline const StylePropertySet* Element::presentationAttributeStyle() 822 inline const StylePropertySet* Element::presentationAttributeStyle()
815 { 823 {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 887 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
880 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 888 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
881 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 889 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
882 { \ 890 { \
883 return adoptRefWillBeNoop(new T(tagName, document)); \ 891 return adoptRefWillBeNoop(new T(tagName, document)); \
884 } 892 }
885 893
886 } // namespace 894 } // namespace
887 895
888 #endif // Element_h 896 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698