| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 const AtomicString& HTMLDocument::vlinkColor() const | 149 const AtomicString& HTMLDocument::vlinkColor() const |
| 150 { | 150 { |
| 151 return bodyAttributeValue(vlinkAttr); | 151 return bodyAttributeValue(vlinkAttr); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void HTMLDocument::setVlinkColor(const AtomicString& value) | 154 void HTMLDocument::setVlinkColor(const AtomicString& value) |
| 155 { | 155 { |
| 156 setBodyAttribute(vlinkAttr, value); | 156 setBodyAttribute(vlinkAttr, value); |
| 157 } | 157 } |
| 158 | 158 |
| 159 PassRefPtrWillBeRawPtr<Document> HTMLDocument::cloneDocumentWithoutChildren() | 159 RawPtr<Document> HTMLDocument::cloneDocumentWithoutChildren() |
| 160 { | 160 { |
| 161 return create(DocumentInit(url()).withRegistrationContext(registrationContex
t())); | 161 return create(DocumentInit(url()).withRegistrationContext(registrationContex
t())); |
| 162 } | 162 } |
| 163 | 163 |
| 164 // -------------------------------------------------------------------------- | 164 // -------------------------------------------------------------------------- |
| 165 // not part of the DOM | 165 // not part of the DOM |
| 166 // -------------------------------------------------------------------------- | 166 // -------------------------------------------------------------------------- |
| 167 | 167 |
| 168 void HTMLDocument::addItemToMap(HashCountedSet<AtomicString>& map, const AtomicS
tring& name) | 168 void HTMLDocument::addItemToMap(HashCountedSet<AtomicString>& map, const AtomicS
tring& name) |
| 169 { | 169 { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 } | 233 } |
| 234 | 234 |
| 235 bool HTMLDocument::isCaseSensitiveAttribute(const QualifiedName& attributeName) | 235 bool HTMLDocument::isCaseSensitiveAttribute(const QualifiedName& attributeName) |
| 236 { | 236 { |
| 237 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = createHtmlCa
seInsensitiveAttributesSet(); | 237 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = createHtmlCa
seInsensitiveAttributesSet(); |
| 238 bool isPossibleHTMLAttr = !attributeName.hasPrefix() && (attributeName.names
paceURI() == nullAtom); | 238 bool isPossibleHTMLAttr = !attributeName.hasPrefix() && (attributeName.names
paceURI() == nullAtom); |
| 239 return !isPossibleHTMLAttr || !htmlCaseInsensitiveAttributesSet->contains(at
tributeName.localName().impl()); | 239 return !isPossibleHTMLAttr || !htmlCaseInsensitiveAttributesSet->contains(at
tributeName.localName().impl()); |
| 240 } | 240 } |
| 241 | 241 |
| 242 } // namespace blink | 242 } // namespace blink |
| OLD | NEW |