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

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

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/MediaQueryList.h ('k') | Source/core/events/EventTarget.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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 #if ENABLE(OILPAN) 120 #if ENABLE(OILPAN)
121 #define NODE_BASE_CLASSES public EventTarget 121 #define NODE_BASE_CLASSES public EventTarget
122 #else 122 #else
123 // TreeShared should be the last to pack TreeShared::m_refCount and 123 // TreeShared should be the last to pack TreeShared::m_refCount and
124 // Node::m_nodeFlags on 64bit platforms. 124 // Node::m_nodeFlags on 64bit platforms.
125 #define NODE_BASE_CLASSES public EventTarget, public TreeShared<Node> 125 #define NODE_BASE_CLASSES public EventTarget, public TreeShared<Node>
126 #endif 126 #endif
127 127
128 class CORE_EXPORT Node : NODE_BASE_CLASSES { 128 class CORE_EXPORT Node : NODE_BASE_CLASSES {
129 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(TreeShared<Node>); 129 #if !ENABLE(OILPAN)
130 DEFINE_EVENT_TARGET_REFCOUNTING(TreeShared<Node>);
131 #endif
130 DEFINE_WRAPPERTYPEINFO(); 132 DEFINE_WRAPPERTYPEINFO();
131 friend class TreeScope; 133 friend class TreeScope;
132 friend class TreeScopeAdopter; 134 friend class TreeScopeAdopter;
133 public: 135 public:
134 enum NodeType { 136 enum NodeType {
135 ELEMENT_NODE = 1, 137 ELEMENT_NODE = 1,
136 ATTRIBUTE_NODE = 2, 138 ATTRIBUTE_NODE = 2,
137 TEXT_NODE = 3, 139 TEXT_NODE = 3,
138 CDATA_SECTION_NODE = 4, 140 CDATA_SECTION_NODE = 4,
139 PROCESSING_INSTRUCTION_NODE = 7, 141 PROCESSING_INSTRUCTION_NODE = 7,
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 } // namespace blink 919 } // namespace blink
918 920
919 #ifndef NDEBUG 921 #ifndef NDEBUG
920 // Outside the WebCore namespace for ease of invocation from gdb. 922 // Outside the WebCore namespace for ease of invocation from gdb.
921 void showNode(const blink::Node*); 923 void showNode(const blink::Node*);
922 void showTree(const blink::Node*); 924 void showTree(const blink::Node*);
923 void showNodePath(const blink::Node*); 925 void showNodePath(const blink::Node*);
924 #endif 926 #endif
925 927
926 #endif // Node_h 928 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryList.h ('k') | Source/core/events/EventTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698