| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |