summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLObjectElement.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-05-07 11:21:11 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-05-07 11:21:11 +0200
commit2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch)
tree988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebCore/html/HTMLObjectElement.cpp
parentdd91e772430dc294e3bf478c119ef8d43c0a3358 (diff)
downloadqtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebCore/html/HTMLObjectElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLObjectElement.cpp27
1 files changed, 8 insertions, 19 deletions
diff --git a/Source/WebCore/html/HTMLObjectElement.cpp b/Source/WebCore/html/HTMLObjectElement.cpp
index 635042fee..e09349c75 100644
--- a/Source/WebCore/html/HTMLObjectElement.cpp
+++ b/Source/WebCore/html/HTMLObjectElement.cpp
@@ -328,16 +328,17 @@ bool HTMLObjectElement::rendererIsNeeded(const NodeRenderingContext& context)
return HTMLPlugInImageElement::rendererIsNeeded(context);
}
-void HTMLObjectElement::insertedIntoDocument()
+Node::InsertionNotificationRequest HTMLObjectElement::insertedInto(Node* insertionPoint)
{
- HTMLPlugInImageElement::insertedIntoDocument();
- FormAssociatedElement::insertedIntoDocument();
+ HTMLPlugInImageElement::insertedInto(insertionPoint);
+ FormAssociatedElement::insertedInto(insertionPoint);
+ return InsertionDone;
}
-void HTMLObjectElement::removedFromDocument()
+void HTMLObjectElement::removedFrom(Node* insertionPoint)
{
- HTMLPlugInImageElement::removedFromDocument();
- FormAssociatedElement::removedFromDocument();
+ HTMLPlugInImageElement::removedFrom(insertionPoint);
+ FormAssociatedElement::removedFrom(insertionPoint);
}
void HTMLObjectElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
@@ -475,7 +476,7 @@ void HTMLObjectElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
// FIXME: Passing a string that starts with "#" to the completeURL function does
// not seem like it would work. The image element has similar but not identical code.
const AtomicString& useMap = getAttribute(usemapAttr);
- if (useMap.startsWith("#"))
+ if (useMap.startsWith('#'))
addSubresourceURL(urls, document()->completeURL(useMap));
}
@@ -485,18 +486,6 @@ void HTMLObjectElement::didMoveToNewDocument(Document* oldDocument)
HTMLPlugInImageElement::didMoveToNewDocument(oldDocument);
}
-void HTMLObjectElement::insertedIntoTree(bool deep)
-{
- FormAssociatedElement::insertedIntoTree();
- HTMLPlugInImageElement::insertedIntoTree(deep);
-}
-
-void HTMLObjectElement::removedFromTree(bool deep)
-{
- FormAssociatedElement::removedFromTree();
- HTMLPlugInImageElement::removedFromTree(deep);
-}
-
bool HTMLObjectElement::appendFormData(FormDataList& encoding, bool)
{
if (name().isEmpty())