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-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 { | 344 { |
345 return treeScope().document(); | 345 return treeScope().document(); |
346 } | 346 } |
347 | 347 |
348 TreeScope& treeScope() const | 348 TreeScope& treeScope() const |
349 { | 349 { |
350 ASSERT(m_treeScope); | 350 ASSERT(m_treeScope); |
351 return *m_treeScope; | 351 return *m_treeScope; |
352 } | 352 } |
353 | 353 |
| 354 ContainerNode* ownerScope() const; |
| 355 |
354 bool inActiveDocument() const; | 356 bool inActiveDocument() const; |
355 | 357 |
356 // Returns true if this node is associated with a document and is in its ass
ociated document's | 358 // Returns true if this node is associated with a document and is in its ass
ociated document's |
357 // node tree, false otherwise. | 359 // node tree, false otherwise. |
358 bool inDocument() const | 360 bool inDocument() const |
359 { | 361 { |
360 return getFlag(InDocumentFlag); | 362 return getFlag(InDocumentFlag); |
361 } | 363 } |
362 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } | 364 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } |
363 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } | 365 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 } // namespace blink | 706 } // namespace blink |
705 | 707 |
706 #ifndef NDEBUG | 708 #ifndef NDEBUG |
707 // Outside the WebCore namespace for ease of invocation from gdb. | 709 // Outside the WebCore namespace for ease of invocation from gdb. |
708 void showNode(const blink::Node*); | 710 void showNode(const blink::Node*); |
709 void showTree(const blink::Node*); | 711 void showTree(const blink::Node*); |
710 void showNodePath(const blink::Node*); | 712 void showNodePath(const blink::Node*); |
711 #endif | 713 #endif |
712 | 714 |
713 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ | 715 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ |
OLD | NEW |