diff options
Diffstat (limited to 'WebCore/html/HTMLEmbedElement.cpp')
-rw-r--r-- | WebCore/html/HTMLEmbedElement.cpp | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/WebCore/html/HTMLEmbedElement.cpp b/WebCore/html/HTMLEmbedElement.cpp index 3f6db9a..81b88a4 100644 --- a/WebCore/html/HTMLEmbedElement.cpp +++ b/WebCore/html/HTMLEmbedElement.cpp @@ -2,7 +2,7 @@ * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2000 Stefan Schimanski (1Stein@gmx.de) - * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2004, 2005, 2006, 2008, 2009 Apple Inc. All rights reserved. * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) * * This library is free software; you can redistribute it and/or @@ -42,15 +42,16 @@ namespace WebCore { using namespace HTMLNames; -HTMLEmbedElement::HTMLEmbedElement(const QualifiedName& tagName, Document* doc) - : HTMLPlugInImageElement(tagName, doc) +inline HTMLEmbedElement::HTMLEmbedElement(const QualifiedName& tagName, Document* document) + : HTMLPlugInImageElement(tagName, document) , m_needWidgetUpdate(false) { ASSERT(hasTagName(embedTag)); } -HTMLEmbedElement::~HTMLEmbedElement() +PassRefPtr<HTMLEmbedElement> HTMLEmbedElement::create(const QualifiedName& tagName, Document* document) { + return adoptRef(new HTMLEmbedElement(tagName, document)); } static inline RenderWidget* findWidgetRenderer(const Node* n) @@ -238,31 +239,11 @@ const QualifiedName& HTMLEmbedElement::imageSourceAttributeName() const return srcAttr; } -String HTMLEmbedElement::src() const -{ - return getAttribute(srcAttr); -} - -void HTMLEmbedElement::setSrc(const String& value) -{ - setAttribute(srcAttr, value); -} - -String HTMLEmbedElement::type() const -{ - return getAttribute(typeAttr); -} - -void HTMLEmbedElement::setType(const String& value) -{ - setAttribute(typeAttr, value); -} - void HTMLEmbedElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const { HTMLPlugInImageElement::addSubresourceAttributeURLs(urls); - addSubresourceURL(urls, document()->completeURL(src())); + addSubresourceURL(urls, document()->completeURL(getAttribute(srcAttr))); } } |