| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 HTMLMetaElement* metaElement = static_cast<HTMLMetaElement*>(metaElement
s->item(i)); | 249 HTMLMetaElement* metaElement = static_cast<HTMLMetaElement*>(metaElement
s->item(i)); |
| 250 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement->
content().startsWith("Mac OS X Server Web Services Server", false)) | 250 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement->
content().startsWith("Mac OS X Server Web Services Server", false)) |
| 251 return true; | 251 return true; |
| 252 } | 252 } |
| 253 | 253 |
| 254 return false; | 254 return false; |
| 255 } | 255 } |
| 256 | 256 |
| 257 bool HTMLObjectElement::hasValidClassId() | 257 bool HTMLObjectElement::hasValidClassId() |
| 258 { | 258 { |
| 259 #if PLATFORM(QT) | |
| 260 if (equalIgnoringCase(serviceType(), "application/x-qt-plugin") || equalIgno
ringCase(serviceType(), "application/x-qt-styled-widget")) | |
| 261 return true; | |
| 262 #endif | |
| 263 | |
| 264 if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType()) && classId().start
sWith("java:", false)) | 259 if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType()) && classId().start
sWith("java:", false)) |
| 265 return true; | 260 return true; |
| 266 | 261 |
| 267 if (shouldAllowQuickTimeClassIdQuirk()) | 262 if (shouldAllowQuickTimeClassIdQuirk()) |
| 268 return true; | 263 return true; |
| 269 | 264 |
| 270 // HTML5 says that fallback content should be rendered if a non-empty | 265 // HTML5 says that fallback content should be rendered if a non-empty |
| 271 // classid is specified for which the UA can't find a suitable plug-in. | 266 // classid is specified for which the UA can't find a suitable plug-in. |
| 272 return classId().isEmpty(); | 267 return classId().isEmpty(); |
| 273 } | 268 } |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 return getURLAttribute(dataAttr); | 512 return getURLAttribute(dataAttr); |
| 518 } | 513 } |
| 519 | 514 |
| 520 void HTMLObjectElement::setItemValueText(const String& value, ExceptionCode&) | 515 void HTMLObjectElement::setItemValueText(const String& value, ExceptionCode&) |
| 521 { | 516 { |
| 522 setAttribute(dataAttr, value); | 517 setAttribute(dataAttr, value); |
| 523 } | 518 } |
| 524 #endif | 519 #endif |
| 525 | 520 |
| 526 } | 521 } |
| OLD | NEW |