| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 { | 472 { |
| 473 return treeScope().document(); | 473 return treeScope().document(); |
| 474 } | 474 } |
| 475 | 475 |
| 476 TreeScope& treeScope() const | 476 TreeScope& treeScope() const |
| 477 { | 477 { |
| 478 DCHECK(m_treeScope); | 478 DCHECK(m_treeScope); |
| 479 return *m_treeScope; | 479 return *m_treeScope; |
| 480 } | 480 } |
| 481 | 481 |
| 482 TreeScope& rootTreeScope() const |
| 483 { |
| 484 DCHECK(isInTreeScope()); |
| 485 return *m_treeScope; |
| 486 } |
| 487 |
| 482 bool inActiveDocument() const; | 488 bool inActiveDocument() const; |
| 483 | 489 |
| 484 // Returns true if this node is associated with a shadow-including document
and is in its associated document's | 490 // Returns true if this node is associated with a shadow-including document
and is in its associated document's |
| 485 // node tree, false otherwise. | 491 // node tree, false otherwise. |
| 486 bool inShadowIncludingDocument() const | 492 bool inShadowIncludingDocument() const |
| 487 { | 493 { |
| 488 return getFlag(InDocumentFlag); | 494 return getFlag(InDocumentFlag); |
| 489 } | 495 } |
| 490 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } | 496 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } |
| 491 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } | 497 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen
tFlag | IsInShadowTreeFlag)); } |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 } // namespace blink | 936 } // namespace blink |
| 931 | 937 |
| 932 #ifndef NDEBUG | 938 #ifndef NDEBUG |
| 933 // Outside the WebCore namespace for ease of invocation from gdb. | 939 // Outside the WebCore namespace for ease of invocation from gdb. |
| 934 void showNode(const blink::Node*); | 940 void showNode(const blink::Node*); |
| 935 void showTree(const blink::Node*); | 941 void showTree(const blink::Node*); |
| 936 void showNodePath(const blink::Node*); | 942 void showNodePath(const blink::Node*); |
| 937 #endif | 943 #endif |
| 938 | 944 |
| 939 #endif // Node_h | 945 #endif // Node_h |
| OLD | NEW |