| 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/dom/ElementTraversal.h" | 30 #include "core/dom/ElementTraversal.h" |
| 31 #include "core/events/EventNames.h" | 31 #include "core/events/EventNames.h" |
| 32 #include "core/dom/NodeList.h" | 32 #include "core/dom/NodeList.h" |
| 33 #include "core/dom/Text.h" | 33 #include "core/dom/Text.h" |
| 34 #include "core/fetch/ImageResource.h" | 34 #include "core/fetch/ImageResource.h" |
| 35 #include "core/html/HTMLDocument.h" | 35 #include "core/html/HTMLDocument.h" |
| 36 #include "core/html/HTMLImageLoader.h" | 36 #include "core/html/HTMLImageLoader.h" |
| 37 #include "core/html/HTMLMetaElement.h" | 37 #include "core/html/HTMLMetaElement.h" |
| 38 #include "core/html/HTMLParamElement.h" | 38 #include "core/html/HTMLParamElement.h" |
| 39 #include "core/html/parser/HTMLParserIdioms.h" | 39 #include "core/html/parser/HTMLParserIdioms.h" |
| 40 #include "core/page/Page.h" | |
| 41 #include "core/page/Settings.h" | 40 #include "core/page/Settings.h" |
| 42 #include "core/platform/MIMETypeRegistry.h" | 41 #include "core/platform/MIMETypeRegistry.h" |
| 43 #include "core/platform/Widget.h" | 42 #include "core/platform/Widget.h" |
| 44 #include "core/platform/network/FormDataList.h" | 43 #include "core/platform/network/FormDataList.h" |
| 45 #include "core/plugins/PluginView.h" | 44 #include "core/plugins/PluginView.h" |
| 46 #include "core/rendering/RenderEmbeddedObject.h" | 45 #include "core/rendering/RenderEmbeddedObject.h" |
| 47 | 46 |
| 48 namespace WebCore { | 47 namespace WebCore { |
| 49 | 48 |
| 50 using namespace HTMLNames; | 49 using namespace HTMLNames; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 } | 222 } |
| 224 | 223 |
| 225 bool HTMLObjectElement::shouldAllowQuickTimeClassIdQuirk() | 224 bool HTMLObjectElement::shouldAllowQuickTimeClassIdQuirk() |
| 226 { | 225 { |
| 227 // This site-specific hack maintains compatibility with Mac OS X Wiki Server
, | 226 // This site-specific hack maintains compatibility with Mac OS X Wiki Server
, |
| 228 // which embeds QuickTime movies using an object tag containing QuickTime's | 227 // which embeds QuickTime movies using an object tag containing QuickTime's |
| 229 // ActiveX classid. Treat this classid as valid only if OS X Server's unique | 228 // ActiveX classid. Treat this classid as valid only if OS X Server's unique |
| 230 // 'generator' meta tag is present. Only apply this quirk if there is no | 229 // 'generator' meta tag is present. Only apply this quirk if there is no |
| 231 // fallback content, which ensures the quirk will disable itself if Wiki | 230 // fallback content, which ensures the quirk will disable itself if Wiki |
| 232 // Server is updated to generate an alternate embed tag as fallback content. | 231 // Server is updated to generate an alternate embed tag as fallback content. |
| 233 if (!document().page() | 232 if (!document().settings() |
| 234 || !document().page()->settings().needsSiteSpecificQuirks() | 233 || !document().settings()->needsSiteSpecificQuirks() |
| 235 || hasFallbackContent() | 234 || hasFallbackContent() |
| 236 || !equalIgnoringCase(classId(), "clsid:02BF25D5-8C17-4B23-BC80-D3488ABD
DC6B")) | 235 || !equalIgnoringCase(classId(), "clsid:02BF25D5-8C17-4B23-BC80-D3488ABD
DC6B")) |
| 237 return false; | 236 return false; |
| 238 | 237 |
| 239 RefPtr<NodeList> metaElements = document().getElementsByTagName(HTMLNames::m
etaTag.localName()); | 238 RefPtr<NodeList> metaElements = document().getElementsByTagName(HTMLNames::m
etaTag.localName()); |
| 240 unsigned length = metaElements->length(); | 239 unsigned length = metaElements->length(); |
| 241 for (unsigned i = 0; i < length; ++i) { | 240 for (unsigned i = 0; i < length; ++i) { |
| 242 ASSERT(metaElements->item(i)->isHTMLElement()); | 241 ASSERT(metaElements->item(i)->isHTMLElement()); |
| 243 HTMLMetaElement* metaElement = toHTMLMetaElement(metaElements->item(i)); | 242 HTMLMetaElement* metaElement = toHTMLMetaElement(metaElements->item(i)); |
| 244 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement->
content().startsWith("Mac OS X Server Web Services Server", false)) | 243 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement->
content().startsWith("Mac OS X Server Web Services Server", false)) |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 encoding.appendData(name(), value); | 501 encoding.appendData(name(), value); |
| 503 return true; | 502 return true; |
| 504 } | 503 } |
| 505 | 504 |
| 506 HTMLFormElement* HTMLObjectElement::virtualForm() const | 505 HTMLFormElement* HTMLObjectElement::virtualForm() const |
| 507 { | 506 { |
| 508 return FormAssociatedElement::form(); | 507 return FormAssociatedElement::form(); |
| 509 } | 508 } |
| 510 | 509 |
| 511 } | 510 } |
| OLD | NEW |