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 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights
reserved. |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // we have to explicitly suppress the tag's CODEBASE attribute if there is n
one in a PARAM, | 181 // we have to explicitly suppress the tag's CODEBASE attribute if there is n
one in a PARAM, |
182 // else our Java plugin will misinterpret it. [4004531] | 182 // else our Java plugin will misinterpret it. [4004531] |
183 String codebase; | 183 String codebase; |
184 if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType)) { | 184 if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType)) { |
185 codebase = "codebase"; | 185 codebase = "codebase"; |
186 uniqueParamNames.add(codebase.impl()); // pretend we found it in a PARAM
already | 186 uniqueParamNames.add(codebase.impl()); // pretend we found it in a PARAM
already |
187 } | 187 } |
188 | 188 |
189 // Turn the attributes of the <object> element into arrays, but don't overri
de <param> values. | 189 // Turn the attributes of the <object> element into arrays, but don't overri
de <param> values. |
190 if (hasAttributes()) { | 190 if (hasAttributes()) { |
191 AttributeIteratorAccessor attributes = attributesIterator(); | 191 AttributeCollection attributes = this->attributes(); |
192 AttributeConstIterator end = attributes.end(); | 192 AttributeCollection::const_iterator end = attributes.end(); |
193 for (AttributeConstIterator it = attributes.begin(); it != end; ++it) { | 193 for (AttributeCollection::const_iterator it = attributes.begin(); it !=
end; ++it) { |
194 const AtomicString& name = it->name().localName(); | 194 const AtomicString& name = it->name().localName(); |
195 if (!uniqueParamNames.contains(name.impl())) { | 195 if (!uniqueParamNames.contains(name.impl())) { |
196 paramNames.append(name.string()); | 196 paramNames.append(name.string()); |
197 paramValues.append(it->value().string()); | 197 paramValues.append(it->value().string()); |
198 } | 198 } |
199 } | 199 } |
200 } | 200 } |
201 | 201 |
202 mapDataParamToSrc(¶mNames, ¶mValues); | 202 mapDataParamToSrc(¶mNames, ¶mValues); |
203 | 203 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 { | 489 { |
490 return fastHasAttribute(usemapAttr); | 490 return fastHasAttribute(usemapAttr); |
491 } | 491 } |
492 | 492 |
493 bool HTMLObjectElement::useFallbackContent() const | 493 bool HTMLObjectElement::useFallbackContent() const |
494 { | 494 { |
495 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; | 495 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; |
496 } | 496 } |
497 | 497 |
498 } | 498 } |
OLD | NEW |