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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 HTMLPlugInImageElement::parseAttribute(name, value); | 65 HTMLPlugInImageElement::parseAttribute(name, value); |
66 } | 66 } |
67 | 67 |
68 bool HTMLAppletElement::rendererIsNeeded(const NodeRenderingContext& context) | 68 bool HTMLAppletElement::rendererIsNeeded(const NodeRenderingContext& context) |
69 { | 69 { |
70 if (!fastHasAttribute(codeAttr)) | 70 if (!fastHasAttribute(codeAttr)) |
71 return false; | 71 return false; |
72 return HTMLPlugInImageElement::rendererIsNeeded(context); | 72 return HTMLPlugInImageElement::rendererIsNeeded(context); |
73 } | 73 } |
74 | 74 |
75 RenderObject* HTMLAppletElement::createRenderer(RenderArena*, RenderStyle* style
) | 75 RenderObject* HTMLAppletElement::createRenderer(RenderStyle* style) |
76 { | 76 { |
77 if (!canEmbedJava()) | 77 if (!canEmbedJava()) |
78 return RenderObject::createObject(this, style); | 78 return RenderObject::createObject(this, style); |
79 | 79 |
80 return new (document()->renderArena()) RenderApplet(this); | 80 return new RenderApplet(this); |
81 } | 81 } |
82 | 82 |
83 RenderWidget* HTMLAppletElement::renderWidgetForJSBindings() const | 83 RenderWidget* HTMLAppletElement::renderWidgetForJSBindings() const |
84 { | 84 { |
85 if (!canEmbedJava()) | 85 if (!canEmbedJava()) |
86 return 0; | 86 return 0; |
87 | 87 |
88 document()->updateLayoutIgnorePendingStylesheets(); | 88 document()->updateLayoutIgnorePendingStylesheets(); |
89 return renderPart(); | 89 return renderPart(); |
90 } | 90 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 if (!settings) | 163 if (!settings) |
164 return false; | 164 return false; |
165 | 165 |
166 if (!settings->isJavaEnabled()) | 166 if (!settings->isJavaEnabled()) |
167 return false; | 167 return false; |
168 | 168 |
169 return true; | 169 return true; |
170 } | 170 } |
171 | 171 |
172 } | 172 } |
OLD | NEW |