| 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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 return InsertionDone; | 871 return InsertionDone; |
| 872 } | 872 } |
| 873 | 873 |
| 874 inline void Node::removedFrom(ContainerNode* insertionPoint) | 874 inline void Node::removedFrom(ContainerNode* insertionPoint) |
| 875 { | 875 { |
| 876 DCHECK(insertionPoint->inShadowIncludingDocument() || isContainerNode() || i
sInShadowTree()); | 876 DCHECK(insertionPoint->inShadowIncludingDocument() || isContainerNode() || i
sInShadowTree()); |
| 877 if (insertionPoint->inShadowIncludingDocument()) { | 877 if (insertionPoint->inShadowIncludingDocument()) { |
| 878 clearFlag(InDocumentFlag); | 878 clearFlag(InDocumentFlag); |
| 879 insertionPoint->document().decrementNodeCount(); | 879 insertionPoint->document().decrementNodeCount(); |
| 880 } | 880 } |
| 881 if (isInShadowTree() && !treeScope().rootNode().isShadowRoot()) | 881 if (isInShadowTree() && !treeScopeOrDocument().rootNode().isShadowRoot()) |
| 882 clearFlag(IsInShadowTreeFlag); | 882 clearFlag(IsInShadowTreeFlag); |
| 883 if (AXObjectCache* cache = document().existingAXObjectCache()) | 883 if (AXObjectCache* cache = document().existingAXObjectCache()) |
| 884 cache->remove(this); | 884 cache->remove(this); |
| 885 } | 885 } |
| 886 | 886 |
| 887 inline void Element::invalidateStyleAttribute() | 887 inline void Element::invalidateStyleAttribute() |
| 888 { | 888 { |
| 889 DCHECK(elementData()); | 889 DCHECK(elementData()); |
| 890 elementData()->m_styleAttributeIsDirty = true; | 890 elementData()->m_styleAttributeIsDirty = true; |
| 891 } | 891 } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 static T* create(const QualifiedName&, Document&) | 958 static T* create(const QualifiedName&, Document&) |
| 959 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 959 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 960 T* T::create(const QualifiedName& tagName, Document& document) \ | 960 T* T::create(const QualifiedName& tagName, Document& document) \ |
| 961 { \ | 961 { \ |
| 962 return new T(tagName, document); \ | 962 return new T(tagName, document); \ |
| 963 } | 963 } |
| 964 | 964 |
| 965 } // namespace blink | 965 } // namespace blink |
| 966 | 966 |
| 967 #endif // Element_h | 967 #endif // Element_h |
| OLD | NEW |