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

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

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 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, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 inline bool containsConsideringHostElements(const Node&) const; 258 inline bool containsConsideringHostElements(const Node&) const;
259 inline bool isChildTypeAllowed(const Node& child) const; 259 inline bool isChildTypeAllowed(const Node& child) const;
260 260
261 bool getUpperLeftCorner(FloatPoint&) const; 261 bool getUpperLeftCorner(FloatPoint&) const;
262 bool getLowerRightCorner(FloatPoint&) const; 262 bool getLowerRightCorner(FloatPoint&) const;
263 263
264 Member<Node> m_firstChild; 264 Member<Node> m_firstChild;
265 Member<Node> m_lastChild; 265 Member<Node> m_lastChild;
266 }; 266 };
267 267
268 #if ENABLE(ASSERT) 268 #if DCHECK_IS_ON()
269 bool childAttachedAllowedWhenAttachingChildren(ContainerNode*); 269 bool childAttachedAllowedWhenAttachingChildren(ContainerNode*);
270 #endif 270 #endif
271 271
272 WILL_NOT_BE_EAGERLY_TRACED_CLASS(ContainerNode); 272 WILL_NOT_BE_EAGERLY_TRACED_CLASS(ContainerNode);
273 273
274 DEFINE_NODE_TYPE_CASTS(ContainerNode, isContainerNode()); 274 DEFINE_NODE_TYPE_CASTS(ContainerNode, isContainerNode());
275 275
276 inline bool ContainerNode::hasChildCount(unsigned count) const 276 inline bool ContainerNode::hasChildCount(unsigned count) const
277 { 277 {
278 Node* child = m_firstChild; 278 Node* child = m_firstChild;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 return parent && (parent->isElementNode() || parent->isDocumentFragment()) ? parent : nullptr; 330 return parent && (parent->isElementNode() || parent->isDocumentFragment()) ? parent : nullptr;
331 } 331 }
332 332
333 inline bool Node::isTreeScope() const 333 inline bool Node::isTreeScope() const
334 { 334 {
335 return &treeScope().rootNode() == this; 335 return &treeScope().rootNode() == this;
336 } 336 }
337 337
338 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) 338 inline void getChildNodes(ContainerNode& node, NodeVector& nodes)
339 { 339 {
340 ASSERT(!nodes.size()); 340 DCHECK(!nodes.size());
341 for (Node* child = node.firstChild(); child; child = child->nextSibling()) 341 for (Node* child = node.firstChild(); child; child = child->nextSibling())
342 nodes.append(child); 342 nodes.append(child);
343 } 343 }
344 344
345 } // namespace blink 345 } // namespace blink
346 346
347 #endif // ContainerNode_h 347 #endif // ContainerNode_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/CompositorProxy.cpp ('k') | third_party/WebKit/Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698