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

Side by Side Diff: third_party/WebKit/Source/core/xml/XPathUtil.cpp

Issue 2274573004: Replace ASSERT*() with DCHECK*() in core/xml/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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) 2005 Frerich Raabe <raabe@kde.org> 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org>
3 * Copyright (C) 2006, 2009 Apple Inc. 3 * Copyright (C) 2006, 2009 Apple Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 case Node::kDocumentNode: 77 case Node::kDocumentNode:
78 case Node::kElementNode: 78 case Node::kElementNode:
79 case Node::kProcessingInstructionNode: 79 case Node::kProcessingInstructionNode:
80 return true; 80 return true;
81 case Node::kDocumentFragmentNode: 81 case Node::kDocumentFragmentNode:
82 case Node::kDocumentTypeNode: 82 case Node::kDocumentTypeNode:
83 return false; 83 return false;
84 case Node::kTextNode: 84 case Node::kTextNode:
85 return !(node->parentNode() && node->parentNode()->isAttributeNode()); 85 return !(node->parentNode() && node->parentNode()->isAttributeNode());
86 } 86 }
87 ASSERT_NOT_REACHED(); 87 NOTREACHED();
88 return false; 88 return false;
89 } 89 }
90 90
91 } // namespace XPath 91 } // namespace XPath
92 } // namespace blink 92 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathStep.cpp ('k') | third_party/WebKit/Source/core/xml/XPathValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698