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

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

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 years, 8 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
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. 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
7 * (http://www.torchmobile.com/) 7 * (http://www.torchmobile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Override operator new to allocate Node subtype objects onto 160 // Override operator new to allocate Node subtype objects onto
161 // a dedicated heap. 161 // a dedicated heap.
162 GC_PLUGIN_IGNORE("crbug.com/443854") 162 GC_PLUGIN_IGNORE("crbug.com/443854")
163 void* operator new(size_t size) { return allocateObject(size, false); } 163 void* operator new(size_t size) { return allocateObject(size, false); }
164 static void* allocateObject(size_t size, bool isEager) { 164 static void* allocateObject(size_t size, bool isEager) {
165 ThreadState* state = 165 ThreadState* state =
166 ThreadStateFor<ThreadingTrait<Node>::Affinity>::state(); 166 ThreadStateFor<ThreadingTrait<Node>::Affinity>::state();
167 const char* typeName = "blink::Node"; 167 const char* typeName = "blink::Node";
168 return ThreadHeap::allocateOnArenaIndex( 168 return ThreadHeap::allocateOnArenaIndex(
169 state, size, 169 state, size,
170 isEager ? BlinkGC::EagerSweepArenaIndex : BlinkGC::NodeArenaIndex, 170 is_eager ? BlinkGC::kEagerSweepArenaIndex : BlinkGC::kNodeArenaIndex,
171 GCInfoTrait<EventTarget>::index(), typeName); 171 GCInfoTrait<EventTarget>::Index(), kTypeName);
172 } 172 }
173 173
174 static void dumpStatistics(); 174 static void dumpStatistics();
175 175
176 ~Node() override; 176 ~Node() override;
177 177
178 // DOM methods & attributes for Node 178 // DOM methods & attributes for Node
179 179
180 bool hasTagName(const HTMLQualifiedName&) const; 180 bool hasTagName(const HTMLQualifiedName&) const;
181 bool hasTagName(const SVGQualifiedName&) const; 181 bool hasTagName(const SVGQualifiedName&) const;
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 } // namespace blink 992 } // namespace blink
993 993
994 #ifndef NDEBUG 994 #ifndef NDEBUG
995 // Outside the WebCore namespace for ease of invocation from gdb. 995 // Outside the WebCore namespace for ease of invocation from gdb.
996 void showNode(const blink::Node*); 996 void showNode(const blink::Node*);
997 void showTree(const blink::Node*); 997 void showTree(const blink::Node*);
998 void showNodePath(const blink::Node*); 998 void showNodePath(const blink::Node*);
999 #endif 999 #endif
1000 1000
1001 #endif // Node_h 1001 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementTraversal.h ('k') | third_party/WebKit/Source/core/dom/NodeTraversal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698