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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLDocument.cpp

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. Created 4 years, 4 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 namespace blink { 60 namespace blink {
61 61
62 using namespace HTMLNames; 62 using namespace HTMLNames;
63 63
64 HTMLDocument::HTMLDocument(const DocumentInit& initializer, DocumentClassFlags e xtendedDocumentClasses) 64 HTMLDocument::HTMLDocument(const DocumentInit& initializer, DocumentClassFlags e xtendedDocumentClasses)
65 : Document(initializer, HTMLDocumentClass | extendedDocumentClasses) 65 : Document(initializer, HTMLDocumentClass | extendedDocumentClasses)
66 { 66 {
67 clearXMLVersion(); 67 clearXMLVersion();
68 if (isSrcdocDocument() || initializer.importsController()) { 68 if (isSrcdocDocument() || initializer.importsController()) {
69 ASSERT(inNoQuirksMode()); 69 DCHECK(inNoQuirksMode());
70 lockCompatibilityMode(); 70 lockCompatibilityMode();
71 } 71 }
72 } 72 }
73 73
74 HTMLDocument::~HTMLDocument() 74 HTMLDocument::~HTMLDocument()
75 { 75 {
76 } 76 }
77 77
78 HTMLBodyElement* HTMLDocument::htmlBodyElement() const 78 HTMLBodyElement* HTMLDocument::htmlBodyElement() const
79 { 79 {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 227 }
228 228
229 bool HTMLDocument::isCaseSensitiveAttribute(const QualifiedName& attributeName) 229 bool HTMLDocument::isCaseSensitiveAttribute(const QualifiedName& attributeName)
230 { 230 {
231 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = createHtmlCa seInsensitiveAttributesSet(); 231 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = createHtmlCa seInsensitiveAttributesSet();
232 bool isPossibleHTMLAttr = !attributeName.hasPrefix() && (attributeName.names paceURI() == nullAtom); 232 bool isPossibleHTMLAttr = !attributeName.hasPrefix() && (attributeName.names paceURI() == nullAtom);
233 return !isPossibleHTMLAttr || !htmlCaseInsensitiveAttributesSet->contains(at tributeName.localName().impl()); 233 return !isPossibleHTMLAttr || !htmlCaseInsensitiveAttributesSet->contains(at tributeName.localName().impl());
234 } 234 }
235 235
236 } // namespace blink 236 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLDialogElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698