| 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, 2010, 2011, 2012 Apple Inc. All | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010, 2011, 2012 Apple Inc. All |
| 5 * rights reserved. | 5 * rights reserved. |
| 6 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 6 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 HashSet<AtomicString> existingNames; | 200 HashSet<AtomicString> existingNames; |
| 201 unsigned length = this->length(); | 201 unsigned length = this->length(); |
| 202 for (unsigned i = 0; i < length; ++i) { | 202 for (unsigned i = 0; i < length; ++i) { |
| 203 HTMLElement* element = item(i); | 203 HTMLElement* element = item(i); |
| 204 DCHECK(element); | 204 DCHECK(element); |
| 205 const AtomicString& idAttribute = element->getIdAttribute(); | 205 const AtomicString& idAttribute = element->getIdAttribute(); |
| 206 if (!idAttribute.isEmpty()) { | 206 if (!idAttribute.isEmpty()) { |
| 207 HashSet<AtomicString>::AddResult addResult = | 207 HashSet<AtomicString>::AddResult addResult = |
| 208 existingNames.add(idAttribute); | 208 existingNames.add(idAttribute); |
| 209 if (addResult.isNewEntry) | 209 if (addResult.isNewEntry) |
| 210 names.append(idAttribute); | 210 names.push_back(idAttribute); |
| 211 } | 211 } |
| 212 const AtomicString& nameAttribute = element->getNameAttribute(); | 212 const AtomicString& nameAttribute = element->getNameAttribute(); |
| 213 if (!nameAttribute.isEmpty()) { | 213 if (!nameAttribute.isEmpty()) { |
| 214 HashSet<AtomicString>::AddResult addResult = | 214 HashSet<AtomicString>::AddResult addResult = |
| 215 existingNames.add(nameAttribute); | 215 existingNames.add(nameAttribute); |
| 216 if (addResult.isNewEntry) | 216 if (addResult.isNewEntry) |
| 217 names.append(nameAttribute); | 217 names.push_back(nameAttribute); |
| 218 } | 218 } |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 | 221 |
| 222 DEFINE_TRACE(HTMLFormControlsCollection) { | 222 DEFINE_TRACE(HTMLFormControlsCollection) { |
| 223 visitor->trace(m_cachedElement); | 223 visitor->trace(m_cachedElement); |
| 224 HTMLCollection::trace(visitor); | 224 HTMLCollection::trace(visitor); |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace blink | 227 } // namespace blink |
| OLD | NEW |