Chromium Code Reviews| 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 890 DEFINE_TYPE_CASTS(thisType, Node, node, is##thisType(*node), is##thisType(no de)) | 890 DEFINE_TYPE_CASTS(thisType, Node, node, is##thisType(*node), is##thisType(no de)) |
| 891 | 891 |
| 892 #define DECLARE_NODE_FACTORY(T) \ | 892 #define DECLARE_NODE_FACTORY(T) \ |
| 893 static PassRefPtrWillBeRawPtr<T> create(Document&) | 893 static PassRefPtrWillBeRawPtr<T> create(Document&) |
| 894 #define DEFINE_NODE_FACTORY(T) \ | 894 #define DEFINE_NODE_FACTORY(T) \ |
| 895 PassRefPtrWillBeRawPtr<T> T::create(Document& document) \ | 895 PassRefPtrWillBeRawPtr<T> T::create(Document& document) \ |
| 896 { \ | 896 { \ |
| 897 return adoptRefWillBeNoop(new T(document)); \ | 897 return adoptRefWillBeNoop(new T(document)); \ |
| 898 } | 898 } |
| 899 | 899 |
| 900 std::ostream& operator<<(std::ostream&, const Node&); | |
|
tkent
2015/08/26 05:08:37
Please add a comment that these functions are for
yosin_UTC9
2015/08/26 05:36:52
Done.
| |
| 901 std::ostream& operator<<(std::ostream&, const Node*); | |
| 902 | |
| 900 } // namespace blink | 903 } // namespace blink |
| 901 | 904 |
| 902 #ifndef NDEBUG | 905 #ifndef NDEBUG |
| 903 // Outside the WebCore namespace for ease of invocation from gdb. | 906 // Outside the WebCore namespace for ease of invocation from gdb. |
| 904 void showNode(const blink::Node*); | 907 void showNode(const blink::Node*); |
| 905 void showTree(const blink::Node*); | 908 void showTree(const blink::Node*); |
| 906 void showNodePath(const blink::Node*); | 909 void showNodePath(const blink::Node*); |
| 907 #endif | 910 #endif |
| 908 | 911 |
| 909 #endif // Node_h | 912 #endif // Node_h |
| OLD | NEW |