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

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

Issue 425203002: Revert of Oilpan: Prepare to move RenderObject and RenderObjectChildList to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 class NodeRareDataBase { 98 class NodeRareDataBase {
99 public: 99 public:
100 RenderObject* renderer() const { return m_renderer; } 100 RenderObject* renderer() const { return m_renderer; }
101 void setRenderer(RenderObject* renderer) { m_renderer = renderer; } 101 void setRenderer(RenderObject* renderer) { m_renderer = renderer; }
102 102
103 protected: 103 protected:
104 NodeRareDataBase(RenderObject* renderer) 104 NodeRareDataBase(RenderObject* renderer)
105 : m_renderer(renderer) 105 : m_renderer(renderer)
106 { } 106 { }
107 107
108 protected: 108 private:
109 // Oilpan: This member is traced in NodeRareData.
110 // FIXME: Can we add traceAfterDispatch and finalizeGarbageCollectedObject
111 // to NodeRareDataBase, and make m_renderer Member<>?
112 RenderObject* m_renderer; 109 RenderObject* m_renderer;
113 }; 110 };
114 111
115 #if ENABLE(OILPAN) 112 #if ENABLE(OILPAN)
116 #define NODE_BASE_CLASSES public GarbageCollectedFinalized<Node>, public EventTa rget 113 #define NODE_BASE_CLASSES public GarbageCollectedFinalized<Node>, public EventTa rget
117 #else 114 #else
118 // TreeShared should be the last to pack TreeShared::m_refCount and 115 // TreeShared should be the last to pack TreeShared::m_refCount and
119 // Node::m_nodeFlags on 64bit platforms. 116 // Node::m_nodeFlags on 64bit platforms.
120 #define NODE_BASE_CLASSES public EventTarget, public TreeShared<Node> 117 #define NODE_BASE_CLASSES public EventTarget, public TreeShared<Node>
121 #endif 118 #endif
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 } // namespace blink 884 } // namespace blink
888 885
889 #ifndef NDEBUG 886 #ifndef NDEBUG
890 // Outside the WebCore namespace for ease of invocation from gdb. 887 // Outside the WebCore namespace for ease of invocation from gdb.
891 void showNode(const blink::Node*); 888 void showNode(const blink::Node*);
892 void showTree(const blink::Node*); 889 void showTree(const blink::Node*);
893 void showNodePath(const blink::Node*); 890 void showNodePath(const blink::Node*);
894 #endif 891 #endif
895 892
896 #endif 893 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698