| 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 12 matching lines...) Expand all Loading... |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef ContainerNode_h | 25 #ifndef ContainerNode_h |
| 26 #define ContainerNode_h | 26 #define ContainerNode_h |
| 27 | 27 |
| 28 #include "bindings/core/v8/ExceptionState.h" | 28 #include "bindings/core/v8/ExceptionState.h" |
| 29 #include "bindings/core/v8/ScriptWrappableVisitor.h" | 29 #include "bindings/core/v8/ScriptWrappableVisitor.h" |
| 30 #include "core/CoreExport.h" | 30 #include "core/CoreExport.h" |
| 31 #include "core/dom/Node.h" | 31 #include "core/dom/Node.h" |
| 32 #include "core/html/CollectionType.h" | 32 #include "core/html/CollectionType.h" |
| 33 #include "public/platform/WebFocusType.h" |
| 33 #include "wtf/Vector.h" | 34 #include "wtf/Vector.h" |
| 34 | 35 |
| 35 namespace blink { | 36 namespace blink { |
| 36 | 37 |
| 37 class ClassCollection; | 38 class ClassCollection; |
| 38 class ExceptionState; | 39 class ExceptionState; |
| 39 class FloatPoint; | 40 class FloatPoint; |
| 40 class HTMLCollection; | 41 class HTMLCollection; |
| 41 class NameNodeList; | 42 class NameNodeList; |
| 42 using StaticElementList = StaticNodeTypeList<Element>; | 43 using StaticElementList = StaticNodeTypeList<Element>; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void ParserTakeAllChildrenFrom(ContainerNode&); | 130 void ParserTakeAllChildrenFrom(ContainerNode&); |
| 130 | 131 |
| 131 void RemoveChildren( | 132 void RemoveChildren( |
| 132 SubtreeModificationAction = kDispatchSubtreeModifiedEvent); | 133 SubtreeModificationAction = kDispatchSubtreeModifiedEvent); |
| 133 | 134 |
| 134 void CloneChildNodes(ContainerNode* clone); | 135 void CloneChildNodes(ContainerNode* clone); |
| 135 | 136 |
| 136 void AttachLayoutTree(const AttachContext& = AttachContext()) override; | 137 void AttachLayoutTree(const AttachContext& = AttachContext()) override; |
| 137 void DetachLayoutTree(const AttachContext& = AttachContext()) override; | 138 void DetachLayoutTree(const AttachContext& = AttachContext()) override; |
| 138 LayoutRect BoundingBox() const final; | 139 LayoutRect BoundingBox() const final; |
| 139 void SetFocused(bool) override; | 140 void SetFocused(bool, WebFocusType) override; |
| 140 void FocusStateChanged(); | 141 void FocusStateChanged(); |
| 141 void SetActive(bool = true) override; | 142 void SetActive(bool = true) override; |
| 142 void SetDragged(bool) override; | 143 void SetDragged(bool) override; |
| 143 void SetHovered(bool = true) override; | 144 void SetHovered(bool = true) override; |
| 144 | 145 |
| 145 bool ChildrenOrSiblingsAffectedByFocus() const { | 146 bool ChildrenOrSiblingsAffectedByFocus() const { |
| 146 return HasRestyleFlag(kChildrenOrSiblingsAffectedByFocus); | 147 return HasRestyleFlag(kChildrenOrSiblingsAffectedByFocus); |
| 147 } | 148 } |
| 148 void SetChildrenOrSiblingsAffectedByFocus() { | 149 void SetChildrenOrSiblingsAffectedByFocus() { |
| 149 SetRestyleFlag(kChildrenOrSiblingsAffectedByFocus); | 150 SetRestyleFlag(kChildrenOrSiblingsAffectedByFocus); |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 475 |
| 475 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) { | 476 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) { |
| 476 DCHECK(!nodes.size()); | 477 DCHECK(!nodes.size()); |
| 477 for (Node* child = node.FirstChild(); child; child = child->nextSibling()) | 478 for (Node* child = node.FirstChild(); child; child = child->nextSibling()) |
| 478 nodes.push_back(child); | 479 nodes.push_back(child); |
| 479 } | 480 } |
| 480 | 481 |
| 481 } // namespace blink | 482 } // namespace blink |
| 482 | 483 |
| 483 #endif // ContainerNode_h | 484 #endif // ContainerNode_h |
| OLD | NEW |