Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 2259763002: Remove DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 } 855 }
856 856
857 // See the comment at the declaration of ScriptWrappable::fromNode in 857 // See the comment at the declaration of ScriptWrappable::fromNode in
858 // bindings/core/v8/ScriptWrappable.h about why this method is defined here. 858 // bindings/core/v8/ScriptWrappable.h about why this method is defined here.
859 inline ScriptWrappable* ScriptWrappable::fromNode(Node* node) 859 inline ScriptWrappable* ScriptWrappable::fromNode(Node* node)
860 { 860 {
861 return node; 861 return node;
862 } 862 }
863 863
864 // Allow equality comparisons of Nodes by reference or pointer, interchangeably. 864 // Allow equality comparisons of Nodes by reference or pointer, interchangeably.
865 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Node) 865 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Node)
866 866
867 867
868 #define DEFINE_NODE_TYPE_CASTS(thisType, predicate) \ 868 #define DEFINE_NODE_TYPE_CASTS(thisType, predicate) \
869 DEFINE_TYPE_CASTS(thisType, Node, node, node->predicate, node.predicate) 869 DEFINE_TYPE_CASTS(thisType, Node, node, node->predicate, node.predicate)
870 870
871 // This requires isClassName(const Node&). 871 // This requires isClassName(const Node&).
872 #define DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) \ 872 #define DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) \
873 DEFINE_TYPE_CASTS(thisType, Node, node, is##thisType(*node), is##thisType(no de)) 873 DEFINE_TYPE_CASTS(thisType, Node, node, is##thisType(*node), is##thisType(no de))
874 874
875 #define DECLARE_NODE_FACTORY(T) \ 875 #define DECLARE_NODE_FACTORY(T) \
(...skipping 10 matching lines...) Expand all
886 } // namespace blink 886 } // namespace blink
887 887
888 #ifndef NDEBUG 888 #ifndef NDEBUG
889 // Outside the WebCore namespace for ease of invocation from gdb. 889 // Outside the WebCore namespace for ease of invocation from gdb.
890 void showNode(const blink::Node*); 890 void showNode(const blink::Node*);
891 void showTree(const blink::Node*); 891 void showTree(const blink::Node*);
892 void showNodePath(const blink::Node*); 892 void showNodePath(const blink::Node*);
893 #endif 893 #endif
894 894
895 #endif // Node_h 895 #endif // Node_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698