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

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

Issue 133703014: Remove Node.isSupported (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/dom/Node.h ('k') | Source/core/dom/Node.idl » ('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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 ASSERT(isMainThread()); 107 ASSERT(isMainThread());
108 return partitionAlloc(Partitions::getObjectModelPartition(), size); 108 return partitionAlloc(Partitions::getObjectModelPartition(), size);
109 } 109 }
110 110
111 void Node::operator delete(void* ptr) 111 void Node::operator delete(void* ptr)
112 { 112 {
113 ASSERT(isMainThread()); 113 ASSERT(isMainThread());
114 partitionFree(ptr); 114 partitionFree(ptr);
115 } 115 }
116 116
117 bool Node::isSupported(const String& feature, const String& version)
118 {
119 return DOMImplementation::hasFeature(feature, version);
120 }
121
122 #if DUMP_NODE_STATISTICS 117 #if DUMP_NODE_STATISTICS
123 static HashSet<Node*> liveNodeSet; 118 static HashSet<Node*> liveNodeSet;
124 #endif 119 #endif
125 120
126 void Node::dumpStatistics() 121 void Node::dumpStatistics()
127 { 122 {
128 #if DUMP_NODE_STATISTICS 123 #if DUMP_NODE_STATISTICS
129 size_t nodesWithRareData = 0; 124 size_t nodesWithRareData = 0;
130 125
131 size_t elementNodes = 0; 126 size_t elementNodes = 0;
(...skipping 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2636 node->showTreeForThis(); 2631 node->showTreeForThis();
2637 } 2632 }
2638 2633
2639 void showNodePath(const WebCore::Node* node) 2634 void showNodePath(const WebCore::Node* node)
2640 { 2635 {
2641 if (node) 2636 if (node)
2642 node->showNodePathForThis(); 2637 node->showNodePathForThis();
2643 } 2638 }
2644 2639
2645 #endif 2640 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/dom/Node.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698