Add an argument indicating the type of insertion to Node::insertedInto
[WebKit-https.git] / Source / WebCore / dom / ProcessingInstruction.cpp
index 9ff35a4..f084476 100644 (file)
@@ -274,16 +274,16 @@ void ProcessingInstruction::addSubresourceAttributeURLs(ListHashSet<URL>& urls)
     addSubresourceURL(urls, sheet()->baseURL());
 }
 
-Node::InsertionNotificationRequest ProcessingInstruction::insertedInto(ContainerNode& insertionPoint)
+Node::InsertedIntoResult ProcessingInstruction::insertedInto(InsertionType insertionType, ContainerNode& parentOfInsertedTree)
 {
-    CharacterData::insertedInto(insertionPoint);
-    if (!insertionPoint.isConnected())
-        return InsertionDone;
+    CharacterData::insertedInto(insertionType, parentOfInsertedTree);
+    if (!insertionType.connectedToDocument)
+        return InsertedIntoResult::Done;
     document().styleScope().addStyleSheetCandidateNode(*this, m_createdByParser);
-    return InsertionShouldCallFinishedInsertingSubtree;
+    return InsertedIntoResult::NeedsPostInsertionCallback;
 }
 
-void ProcessingInstruction::finishedInsertingSubtree()
+void ProcessingInstruction::didFinishInsertingNode()
 {
     checkStyleSheet();
 }