| 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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 return true; | 234 return true; |
| 235 } else if (!isHTMLParamElement(*child)) { | 235 } else if (!isHTMLParamElement(*child)) { |
| 236 return true; | 236 return true; |
| 237 } | 237 } |
| 238 } | 238 } |
| 239 return false; | 239 return false; |
| 240 } | 240 } |
| 241 | 241 |
| 242 bool HTMLObjectElement::hasValidClassId() const { | 242 bool HTMLObjectElement::hasValidClassId() const { |
| 243 if (MIMETypeRegistry::isJavaAppletMIMEType(m_serviceType) && | 243 if (MIMETypeRegistry::isJavaAppletMIMEType(m_serviceType) && |
| 244 classId().startsWith("java:", TextCaseInsensitive)) | 244 classId().startsWith("java:", TextCaseASCIIInsensitive)) |
| 245 return true; | 245 return true; |
| 246 | 246 |
| 247 // HTML5 says that fallback content should be rendered if a non-empty | 247 // HTML5 says that fallback content should be rendered if a non-empty |
| 248 // classid is specified for which the UA can't find a suitable plugin. | 248 // classid is specified for which the UA can't find a suitable plugin. |
| 249 return classId().isEmpty(); | 249 return classId().isEmpty(); |
| 250 } | 250 } |
| 251 | 251 |
| 252 void HTMLObjectElement::reloadPluginOnAttributeChange( | 252 void HTMLObjectElement::reloadPluginOnAttributeChange( |
| 253 const QualifiedName& name) { | 253 const QualifiedName& name) { |
| 254 // Following, | 254 // Following, |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 | 459 |
| 460 bool HTMLObjectElement::useFallbackContent() const { | 460 bool HTMLObjectElement::useFallbackContent() const { |
| 461 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; | 461 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; |
| 462 } | 462 } |
| 463 | 463 |
| 464 bool HTMLObjectElement::willUseFallbackContentAtLayout() const { | 464 bool HTMLObjectElement::willUseFallbackContentAtLayout() const { |
| 465 return !hasValidClassId() && hasFallbackContent(); | 465 return !hasValidClassId() && hasFallbackContent(); |
| 466 } | 466 } |
| 467 | 467 |
| 468 } // namespace blink | 468 } // namespace blink |
| OLD | NEW |