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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 if (!document().page() | 234 if (!document().page() |
235 || !document().page()->settings().needsSiteSpecificQuirks() | 235 || !document().page()->settings().needsSiteSpecificQuirks() |
236 || hasFallbackContent() | 236 || hasFallbackContent() |
237 || !equalIgnoringCase(classId(), "clsid:02BF25D5-8C17-4B23-BC80-D3488ABD
DC6B")) | 237 || !equalIgnoringCase(classId(), "clsid:02BF25D5-8C17-4B23-BC80-D3488ABD
DC6B")) |
238 return false; | 238 return false; |
239 | 239 |
240 RefPtr<NodeList> metaElements = document().getElementsByTagName(HTMLNames::m
etaTag.localName()); | 240 RefPtr<NodeList> metaElements = document().getElementsByTagName(HTMLNames::m
etaTag.localName()); |
241 unsigned length = metaElements->length(); | 241 unsigned length = metaElements->length(); |
242 for (unsigned i = 0; i < length; ++i) { | 242 for (unsigned i = 0; i < length; ++i) { |
243 ASSERT(metaElements->item(i)->isHTMLElement()); | 243 ASSERT(metaElements->item(i)->isHTMLElement()); |
244 HTMLMetaElement* metaElement = static_cast<HTMLMetaElement*>(metaElement
s->item(i)); | 244 HTMLMetaElement* metaElement = toHTMLMetaElement(metaElements->item(i)); |
245 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement->
content().startsWith("Mac OS X Server Web Services Server", false)) | 245 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement->
content().startsWith("Mac OS X Server Web Services Server", false)) |
246 return true; | 246 return true; |
247 } | 247 } |
248 | 248 |
249 return false; | 249 return false; |
250 } | 250 } |
251 | 251 |
252 bool HTMLObjectElement::hasValidClassId() | 252 bool HTMLObjectElement::hasValidClassId() |
253 { | 253 { |
254 if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType()) && classId().start
sWith("java:", false)) | 254 if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType()) && classId().start
sWith("java:", false)) |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 encoding.appendData(name(), value); | 503 encoding.appendData(name(), value); |
504 return true; | 504 return true; |
505 } | 505 } |
506 | 506 |
507 HTMLFormElement* HTMLObjectElement::virtualForm() const | 507 HTMLFormElement* HTMLObjectElement::virtualForm() const |
508 { | 508 { |
509 return FormAssociatedElement::form(); | 509 return FormAssociatedElement::form(); |
510 } | 510 } |
511 | 511 |
512 } | 512 } |
OLD | NEW |