| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 DEFINE_TYPE_CASTS(thisType, Node, node, is##thisType(*node), is##thisType(no
de)) | 911 DEFINE_TYPE_CASTS(thisType, Node, node, is##thisType(*node), is##thisType(no
de)) |
| 912 | 912 |
| 913 #define DECLARE_NODE_FACTORY(T) \ | 913 #define DECLARE_NODE_FACTORY(T) \ |
| 914 static PassRefPtrWillBeRawPtr<T> create(Document&) | 914 static PassRefPtrWillBeRawPtr<T> create(Document&) |
| 915 #define DEFINE_NODE_FACTORY(T) \ | 915 #define DEFINE_NODE_FACTORY(T) \ |
| 916 PassRefPtrWillBeRawPtr<T> T::create(Document& document) \ | 916 PassRefPtrWillBeRawPtr<T> T::create(Document& document) \ |
| 917 { \ | 917 { \ |
| 918 return adoptRefWillBeNoop(new T(document)); \ | 918 return adoptRefWillBeNoop(new T(document)); \ |
| 919 } | 919 } |
| 920 | 920 |
| 921 // These printers are available only for testing in "webkit_unit_tests", and | 921 CORE_EXPORT std::ostream& operator<<(std::ostream&, const Node&); |
| 922 // implemented in "core/testing/CoreTestPrinters.cpp". | 922 CORE_EXPORT std::ostream& operator<<(std::ostream&, const Node*); |
| 923 std::ostream& operator<<(std::ostream&, const Node&); | |
| 924 std::ostream& operator<<(std::ostream&, const Node*); | |
| 925 | 923 |
| 926 } // namespace blink | 924 } // namespace blink |
| 927 | 925 |
| 928 #ifndef NDEBUG | 926 #ifndef NDEBUG |
| 929 // Outside the WebCore namespace for ease of invocation from gdb. | 927 // Outside the WebCore namespace for ease of invocation from gdb. |
| 930 void showNode(const blink::Node*); | 928 void showNode(const blink::Node*); |
| 931 void showTree(const blink::Node*); | 929 void showTree(const blink::Node*); |
| 932 void showNodePath(const blink::Node*); | 930 void showNodePath(const blink::Node*); |
| 933 #endif | 931 #endif |
| 934 | 932 |
| 935 #endif // Node_h | 933 #endif // Node_h |
| OLD | NEW |