| 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, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 | 450 |
| 451 unsigned nodeIndex() const; | 451 unsigned nodeIndex() const; |
| 452 | 452 |
| 453 // Returns the DOM ownerDocument attribute. This method never returns NULL,
except in the case | 453 // Returns the DOM ownerDocument attribute. This method never returns NULL,
except in the case |
| 454 // of a Document node. | 454 // of a Document node. |
| 455 Document* ownerDocument() const; | 455 Document* ownerDocument() const; |
| 456 | 456 |
| 457 // Returns the document associated with this node. A Document node returns i
tself. | 457 // Returns the document associated with this node. A Document node returns i
tself. |
| 458 Document& document() const | 458 Document& document() const |
| 459 { | 459 { |
| 460 ASSERT(treeScope().documentScope()); | 460 return treeScope().documentScope(); |
| 461 return *treeScope().documentScope(); | |
| 462 } | 461 } |
| 463 | 462 |
| 464 TreeScope& treeScope() const | 463 TreeScope& treeScope() const |
| 465 { | 464 { |
| 466 ASSERT(m_treeScope); | 465 ASSERT(m_treeScope); |
| 467 return *m_treeScope; | 466 return *m_treeScope; |
| 468 } | 467 } |
| 469 | 468 |
| 470 bool inActiveDocument() const; | 469 bool inActiveDocument() const; |
| 471 | 470 |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 | 919 |
| 921 } // namespace WebCore | 920 } // namespace WebCore |
| 922 | 921 |
| 923 #ifndef NDEBUG | 922 #ifndef NDEBUG |
| 924 // Outside the WebCore namespace for ease of invocation from gdb. | 923 // Outside the WebCore namespace for ease of invocation from gdb. |
| 925 void showTree(const WebCore::Node*); | 924 void showTree(const WebCore::Node*); |
| 926 void showNodePath(const WebCore::Node*); | 925 void showNodePath(const WebCore::Node*); |
| 927 #endif | 926 #endif |
| 928 | 927 |
| 929 #endif | 928 #endif |
| OLD | NEW |