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

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

Issue 2401523002: Replace ASSERT family with DCHECK and so on in core/dom/. (Closed)
Patch Set: Created 4 years, 2 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) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 DocumentParser::~DocumentParser() {} 43 DocumentParser::~DocumentParser() {}
44 44
45 DEFINE_TRACE(DocumentParser) { 45 DEFINE_TRACE(DocumentParser) {
46 visitor->trace(m_document); 46 visitor->trace(m_document);
47 visitor->trace(m_clients); 47 visitor->trace(m_clients);
48 } 48 }
49 49
50 void DocumentParser::setDecoder(std::unique_ptr<TextResourceDecoder>) { 50 void DocumentParser::setDecoder(std::unique_ptr<TextResourceDecoder>) {
51 ASSERT_NOT_REACHED(); 51 NOTREACHED();
52 } 52 }
53 53
54 TextResourceDecoder* DocumentParser::decoder() { 54 TextResourceDecoder* DocumentParser::decoder() {
55 return nullptr; 55 return nullptr;
56 } 56 }
57 57
58 void DocumentParser::prepareToStopParsing() { 58 void DocumentParser::prepareToStopParsing() {
59 DCHECK_EQ(m_state, ParsingState); 59 DCHECK_EQ(m_state, ParsingState);
60 m_state = StoppingState; 60 m_state = StoppingState;
61 } 61 }
(...skipping 24 matching lines...) Expand all
86 86
87 void DocumentParser::addClient(DocumentParserClient* client) { 87 void DocumentParser::addClient(DocumentParserClient* client) {
88 m_clients.add(client); 88 m_clients.add(client);
89 } 89 }
90 90
91 void DocumentParser::removeClient(DocumentParserClient* client) { 91 void DocumentParser::removeClient(DocumentParserClient* client) {
92 m_clients.remove(client); 92 m_clients.remove(client);
93 } 93 }
94 94
95 } // namespace blink 95 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698