| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 92fb1746ea222ae65d5486031ff7b204df8188d7..67d2aade857ba3a23849345346db45b872b6a5fb 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -2656,7 +2656,7 @@ void Document::dispatchUnloadEvents()
|
| // The DocumentLoader (and thus its DocumentLoadTiming) might get destroyed
|
| // while dispatching the event, so protect it to prevent writing the end
|
| // time into freed memory.
|
| - RefPtr<DocumentLoader> documentLoader = m_frame->loader().provisionalDocumentLoader();
|
| + RefPtrWillBeRawPtr<DocumentLoader> documentLoader = m_frame->loader().provisionalDocumentLoader();
|
| m_loadEventProgress = UnloadEventInProgress;
|
| RefPtrWillBeRawPtr<Event> unloadEvent(Event::create(EventTypeNames::unload));
|
| if (documentLoader && !documentLoader->timing().unloadEventStart() && !documentLoader->timing().unloadEventEnd()) {
|
| @@ -5263,7 +5263,7 @@ Node* eventTargetNodeForDocument(Document* doc)
|
| Node* node = doc->focusedElement();
|
| if (!node && doc->isPluginDocument()) {
|
| PluginDocument* pluginDocument = toPluginDocument(doc);
|
| - node = pluginDocument->pluginNode();
|
| + node = pluginDocument->pluginNode();
|
| }
|
| if (!node && doc->isHTMLDocument())
|
| node = doc->body();
|
|
|