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

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

Issue 2727843003: Replace RELEASE_ASSERT with CHECK in core/{dom,editing,html} (Closed)
Patch Set: Add a comment Created 3 years, 9 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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 DCHECK(m_treeScope || type == CreateDocument || type == CreateShadowRoot); 289 DCHECK(m_treeScope || type == CreateDocument || type == CreateShadowRoot);
290 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) 290 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS)
291 trackForDebugging(); 291 trackForDebugging();
292 #endif 292 #endif
293 InstanceCounters::incrementNodeCounter(); 293 InstanceCounters::incrementNodeCounter();
294 } 294 }
295 295
296 Node::~Node() { 296 Node::~Node() {
297 // With Oilpan, the rare data finalizer also asserts for 297 // With Oilpan, the rare data finalizer also asserts for
298 // this condition (we cannot directly access it here.) 298 // this condition (we cannot directly access it here.)
299 RELEASE_ASSERT(hasRareData() || !layoutObject()); 299 CHECK(hasRareData() || !layoutObject());
300 InstanceCounters::decrementNodeCounter(); 300 InstanceCounters::decrementNodeCounter();
301 } 301 }
302 302
303 NodeRareData* Node::rareData() const { 303 NodeRareData* Node::rareData() const {
304 SECURITY_DCHECK(hasRareData()); 304 SECURITY_DCHECK(hasRareData());
305 return static_cast<NodeRareData*>(m_data.m_rareData); 305 return static_cast<NodeRareData*>(m_data.m_rareData);
306 } 306 }
307 307
308 NodeRareData& Node::ensureRareData() { 308 NodeRareData& Node::ensureRareData() {
309 if (hasRareData()) 309 if (hasRareData())
(...skipping 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after
2566 if (node) { 2566 if (node) {
2567 std::stringstream stream; 2567 std::stringstream stream;
2568 node->printNodePathTo(stream); 2568 node->printNodePathTo(stream);
2569 LOG(INFO) << stream.str(); 2569 LOG(INFO) << stream.str();
2570 } else { 2570 } else {
2571 LOG(INFO) << "Cannot showNodePath for <null>"; 2571 LOG(INFO) << "Cannot showNodePath for <null>";
2572 } 2572 }
2573 } 2573 }
2574 2574
2575 #endif 2575 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/IntersectionObservation.cpp ('k') | third_party/WebKit/Source/core/dom/NodeRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698