Index: Source/core/loader/FrameLoader.cpp |
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp |
index 13d5dd123e124e75f84a759f77c95882b64c2720..843337b4fc2f0eb35b0a8ebff7d8e26cdbc94b34 100644 |
--- a/Source/core/loader/FrameLoader.cpp |
+++ b/Source/core/loader/FrameLoader.cpp |
@@ -216,7 +216,7 @@ void FrameLoader::setDefersLoading(bool defers) |
} |
if (!defers) { |
- if (m_deferredHistoryLoad.get()) { |
+ if (m_deferredHistoryLoad) { |
load(FrameLoadRequest(nullptr, m_deferredHistoryLoad->m_request), |
m_deferredHistoryLoad->m_loadType, m_deferredHistoryLoad->m_item.get(), |
m_deferredHistoryLoad->m_historyLoadType); |
@@ -822,8 +822,7 @@ void FrameLoader::load(const FrameLoadRequest& passedRequest, FrameLoadType fram |
return; |
if (m_frame->page()->defersLoading() && isBackForwardLoadType(frameLoadType)) { |
- m_deferredHistoryLoad = adoptPtr(new DeferredHistoryLoad( |
- passedRequest.resourceRequest(), historyItem, frameLoadType, historyLoadType)); |
+ m_deferredHistoryLoad = DeferredHistoryLoad::create(passedRequest.resourceRequest(), historyItem, frameLoadType, historyLoadType); |
return; |
} |