| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All |
| 6 * rights reserved. | 6 * 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class ClassCollection; | 38 class ClassCollection; |
| 39 class ExceptionState; | 39 class ExceptionState; |
| 40 class FloatPoint; | 40 class FloatPoint; |
| 41 class HTMLCollection; | 41 class HTMLCollection; |
| 42 class NameNodeList; | 42 class NameNodeList; |
| 43 using StaticElementList = StaticNodeTypeList<Element>; | 43 using StaticElementList = StaticNodeTypeList<Element>; |
| 44 class RadioNodeList; | 44 class RadioNodeList; |
| 45 class TagCollection; | |
| 46 | 45 |
| 47 enum DynamicRestyleFlags { | 46 enum DynamicRestyleFlags { |
| 48 kChildrenOrSiblingsAffectedByFocus = 1 << 0, | 47 kChildrenOrSiblingsAffectedByFocus = 1 << 0, |
| 49 kChildrenOrSiblingsAffectedByHover = 1 << 1, | 48 kChildrenOrSiblingsAffectedByHover = 1 << 1, |
| 50 kChildrenOrSiblingsAffectedByActive = 1 << 2, | 49 kChildrenOrSiblingsAffectedByActive = 1 << 2, |
| 51 kChildrenOrSiblingsAffectedByDrag = 1 << 3, | 50 kChildrenOrSiblingsAffectedByDrag = 1 << 3, |
| 52 kChildrenAffectedByFirstChildRules = 1 << 4, | 51 kChildrenAffectedByFirstChildRules = 1 << 4, |
| 53 kChildrenAffectedByLastChildRules = 1 << 5, | 52 kChildrenAffectedByLastChildRules = 1 << 5, |
| 54 kChildrenAffectedByDirectAdjacentRules = 1 << 6, | 53 kChildrenAffectedByDirectAdjacentRules = 1 << 6, |
| 55 kChildrenAffectedByIndirectAdjacentRules = 1 << 7, | 54 kChildrenAffectedByIndirectAdjacentRules = 1 << 7, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 Node* InsertBefore(Node* new_child, | 112 Node* InsertBefore(Node* new_child, |
| 114 Node* ref_child, | 113 Node* ref_child, |
| 115 ExceptionState& = ASSERT_NO_EXCEPTION); | 114 ExceptionState& = ASSERT_NO_EXCEPTION); |
| 116 Node* ReplaceChild(Node* new_child, | 115 Node* ReplaceChild(Node* new_child, |
| 117 Node* old_child, | 116 Node* old_child, |
| 118 ExceptionState& = ASSERT_NO_EXCEPTION); | 117 ExceptionState& = ASSERT_NO_EXCEPTION); |
| 119 Node* RemoveChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION); | 118 Node* RemoveChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION); |
| 120 Node* AppendChild(Node* new_child, ExceptionState& = ASSERT_NO_EXCEPTION); | 119 Node* AppendChild(Node* new_child, ExceptionState& = ASSERT_NO_EXCEPTION); |
| 121 | 120 |
| 122 Element* getElementById(const AtomicString& id) const; | 121 Element* getElementById(const AtomicString& id) const; |
| 123 TagCollection* getElementsByTagName(const AtomicString&); | 122 HTMLCollection* getElementsByTagName(const AtomicString&); |
| 124 TagCollection* getElementsByTagNameNS(const AtomicString& namespace_uri, | 123 HTMLCollection* getElementsByTagNameNS(const AtomicString& namespace_uri, |
| 125 const AtomicString& local_name); | 124 const AtomicString& local_name); |
| 126 NameNodeList* getElementsByName(const AtomicString& element_name); | 125 NameNodeList* getElementsByName(const AtomicString& element_name); |
| 127 ClassCollection* getElementsByClassName(const AtomicString& class_names); | 126 ClassCollection* getElementsByClassName(const AtomicString& class_names); |
| 128 RadioNodeList* GetRadioNodeList(const AtomicString&, | 127 RadioNodeList* GetRadioNodeList(const AtomicString&, |
| 129 bool only_match_img_elements = false); | 128 bool only_match_img_elements = false); |
| 130 | 129 |
| 131 // These methods are only used during parsing. | 130 // These methods are only used during parsing. |
| 132 // They don't send DOM mutation events or accept DocumentFragments. | 131 // They don't send DOM mutation events or accept DocumentFragments. |
| 133 void ParserAppendChild(Node*); | 132 void ParserAppendChild(Node*); |
| 134 void ParserRemoveChild(Node&); | 133 void ParserRemoveChild(Node&); |
| 135 void ParserInsertBefore(Node* new_child, Node& ref_child); | 134 void ParserInsertBefore(Node* new_child, Node& ref_child); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 | 489 |
| 491 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) { | 490 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) { |
| 492 DCHECK(!nodes.size()); | 491 DCHECK(!nodes.size()); |
| 493 for (Node* child = node.firstChild(); child; child = child->nextSibling()) | 492 for (Node* child = node.firstChild(); child; child = child->nextSibling()) |
| 494 nodes.push_back(child); | 493 nodes.push_back(child); |
| 495 } | 494 } |
| 496 | 495 |
| 497 } // namespace blink | 496 } // namespace blink |
| 498 | 497 |
| 499 #endif // ContainerNode_h | 498 #endif // ContainerNode_h |
| OLD | NEW |