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, 2008, 2009, 2012 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2012 Apple Inc. All rights reserv
ed. |
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 HTMLPlugInElement::parseAttribute(name, value); | 71 HTMLPlugInElement::parseAttribute(name, value); |
72 } | 72 } |
73 | 73 |
74 bool HTMLAppletElement::isURLAttribute(const Attribute& attribute) const | 74 bool HTMLAppletElement::isURLAttribute(const Attribute& attribute) const |
75 { | 75 { |
76 return attribute.name() == codebaseAttr || attribute.name() == objectAttr | 76 return attribute.name() == codebaseAttr || attribute.name() == objectAttr |
77 || HTMLPlugInElement::isURLAttribute(attribute); | 77 || HTMLPlugInElement::isURLAttribute(attribute); |
78 } | 78 } |
79 | 79 |
| 80 bool HTMLAppletElement::hasLegalLinkAttribute(const QualifiedName& name) const |
| 81 { |
| 82 return name == codebaseAttr || HTMLPlugInElement::hasLegalLinkAttribute(name
); |
| 83 } |
| 84 |
80 bool HTMLAppletElement::rendererIsNeeded(const RenderStyle& style) | 85 bool HTMLAppletElement::rendererIsNeeded(const RenderStyle& style) |
81 { | 86 { |
82 if (!fastHasAttribute(codeAttr) && !hasAuthorShadowRoot()) | 87 if (!fastHasAttribute(codeAttr) && !hasAuthorShadowRoot()) |
83 return false; | 88 return false; |
84 return HTMLPlugInElement::rendererIsNeeded(style); | 89 return HTMLPlugInElement::rendererIsNeeded(style); |
85 } | 90 } |
86 | 91 |
87 RenderObject* HTMLAppletElement::createRenderer(RenderStyle* style) | 92 RenderObject* HTMLAppletElement::createRenderer(RenderStyle* style) |
88 { | 93 { |
89 if (!canEmbedJava() || hasAuthorShadowRoot()) | 94 if (!canEmbedJava() || hasAuthorShadowRoot()) |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 219 |
215 if (!document().contentSecurityPolicy()->allowObjectFromSource(url) | 220 if (!document().contentSecurityPolicy()->allowObjectFromSource(url) |
216 || !document().contentSecurityPolicy()->allowPluginType(appletMimeType,
appletMimeType, url)) { | 221 || !document().contentSecurityPolicy()->allowPluginType(appletMimeType,
appletMimeType, url)) { |
217 renderEmbeddedObject()->setPluginUnavailabilityReason(RenderEmbeddedObje
ct::PluginBlockedByContentSecurityPolicy); | 222 renderEmbeddedObject()->setPluginUnavailabilityReason(RenderEmbeddedObje
ct::PluginBlockedByContentSecurityPolicy); |
218 return false; | 223 return false; |
219 } | 224 } |
220 return true; | 225 return true; |
221 } | 226 } |
222 | 227 |
223 } | 228 } |
OLD | NEW |