| 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 | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights |
| 5 * reserved. | 5 * reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 } | 145 } |
| 146 | 146 |
| 147 // -------------------------------------------------------------------------- | 147 // -------------------------------------------------------------------------- |
| 148 // not part of the DOM | 148 // not part of the DOM |
| 149 // -------------------------------------------------------------------------- | 149 // -------------------------------------------------------------------------- |
| 150 | 150 |
| 151 void HTMLDocument::addItemToMap(HashCountedSet<AtomicString>& map, | 151 void HTMLDocument::addItemToMap(HashCountedSet<AtomicString>& map, |
| 152 const AtomicString& name) { | 152 const AtomicString& name) { |
| 153 if (name.isEmpty()) | 153 if (name.isEmpty()) |
| 154 return; | 154 return; |
| 155 map.add(name); | 155 map.insert(name); |
| 156 if (LocalFrame* f = frame()) { | 156 if (LocalFrame* f = frame()) { |
| 157 f->script() | 157 f->script() |
| 158 .windowProxy(DOMWrapperWorld::mainWorld()) | 158 .windowProxy(DOMWrapperWorld::mainWorld()) |
| 159 ->namedItemAdded(this, name); | 159 ->namedItemAdded(this, name); |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 | 162 |
| 163 void HTMLDocument::removeItemFromMap(HashCountedSet<AtomicString>& map, | 163 void HTMLDocument::removeItemFromMap(HashCountedSet<AtomicString>& map, |
| 164 const AtomicString& name) { | 164 const AtomicString& name) { |
| 165 if (name.isEmpty()) | 165 if (name.isEmpty()) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = | 220 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = |
| 221 createHtmlCaseInsensitiveAttributesSet(); | 221 createHtmlCaseInsensitiveAttributesSet(); |
| 222 bool isPossibleHTMLAttr = | 222 bool isPossibleHTMLAttr = |
| 223 !attributeName.hasPrefix() && (attributeName.namespaceURI() == nullAtom); | 223 !attributeName.hasPrefix() && (attributeName.namespaceURI() == nullAtom); |
| 224 return !isPossibleHTMLAttr || | 224 return !isPossibleHTMLAttr || |
| 225 !htmlCaseInsensitiveAttributesSet->contains( | 225 !htmlCaseInsensitiveAttributesSet->contains( |
| 226 attributeName.localName().impl()); | 226 attributeName.localName().impl()); |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace blink | 229 } // namespace blink |
| OLD | NEW |