| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "core/page/Settings.h" | 43 #include "core/page/Settings.h" |
| 44 #include "core/platform/MIMETypeRegistry.h" | 44 #include "core/platform/MIMETypeRegistry.h" |
| 45 #include "core/platform/Widget.h" | 45 #include "core/platform/Widget.h" |
| 46 #include "core/plugins/PluginView.h" | 46 #include "core/plugins/PluginView.h" |
| 47 #include "core/rendering/RenderEmbeddedObject.h" | 47 #include "core/rendering/RenderEmbeddedObject.h" |
| 48 | 48 |
| 49 namespace WebCore { | 49 namespace WebCore { |
| 50 | 50 |
| 51 using namespace HTMLNames; | 51 using namespace HTMLNames; |
| 52 | 52 |
| 53 inline HTMLObjectElement::HTMLObjectElement(const QualifiedName& tagName, Docume
nt* document, HTMLFormElement* form, bool createdByParser) | 53 inline HTMLObjectElement::HTMLObjectElement(const QualifiedName& tagName, Docume
nt& document, HTMLFormElement* form, bool createdByParser) |
| 54 : HTMLPlugInImageElement(tagName, document, createdByParser, ShouldNotPrefer
PlugInsForImages) | 54 : HTMLPlugInImageElement(tagName, document, createdByParser, ShouldNotPrefer
PlugInsForImages) |
| 55 , m_docNamedItem(true) | 55 , m_docNamedItem(true) |
| 56 , m_useFallbackContent(false) | 56 , m_useFallbackContent(false) |
| 57 { | 57 { |
| 58 ASSERT(hasTagName(objectTag)); | 58 ASSERT(hasTagName(objectTag)); |
| 59 setForm(form ? form : findFormAncestor()); | 59 setForm(form ? form : findFormAncestor()); |
| 60 ScriptWrappable::init(this); | 60 ScriptWrappable::init(this); |
| 61 } | 61 } |
| 62 | 62 |
| 63 inline HTMLObjectElement::~HTMLObjectElement() | 63 inline HTMLObjectElement::~HTMLObjectElement() |
| 64 { | 64 { |
| 65 } | 65 } |
| 66 | 66 |
| 67 PassRefPtr<HTMLObjectElement> HTMLObjectElement::create(const QualifiedName& tag
Name, Document* document, HTMLFormElement* form, bool createdByParser) | 67 PassRefPtr<HTMLObjectElement> HTMLObjectElement::create(const QualifiedName& tag
Name, Document& document, HTMLFormElement* form, bool createdByParser) |
| 68 { | 68 { |
| 69 return adoptRef(new HTMLObjectElement(tagName, document, form, createdByPars
er)); | 69 return adoptRef(new HTMLObjectElement(tagName, document, form, createdByPars
er)); |
| 70 } | 70 } |
| 71 | 71 |
| 72 RenderWidget* HTMLObjectElement::existingRenderWidget() const | 72 RenderWidget* HTMLObjectElement::existingRenderWidget() const |
| 73 { | 73 { |
| 74 return renderPart(); // This will return 0 if the renderer is not a RenderPa
rt. | 74 return renderPart(); // This will return 0 if the renderer is not a RenderPa
rt. |
| 75 } | 75 } |
| 76 | 76 |
| 77 bool HTMLObjectElement::isPresentationAttribute(const QualifiedName& name) const | 77 bool HTMLObjectElement::isPresentationAttribute(const QualifiedName& name) const |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 encoding.appendData(name(), value); | 502 encoding.appendData(name(), value); |
| 503 return true; | 503 return true; |
| 504 } | 504 } |
| 505 | 505 |
| 506 HTMLFormElement* HTMLObjectElement::virtualForm() const | 506 HTMLFormElement* HTMLObjectElement::virtualForm() const |
| 507 { | 507 { |
| 508 return FormAssociatedElement::form(); | 508 return FormAssociatedElement::form(); |
| 509 } | 509 } |
| 510 | 510 |
| 511 } | 511 } |
| OLD | NEW |