| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 19a0e0def294cb5053921d7d5bb703e3e5fb2cef..739e80bde553a947bad6b7e5b611c1b2ac21e700 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -1422,7 +1422,11 @@ FrameHost* Document::frameHost() const
|
|
|
| Settings* Document::settings() const
|
| {
|
| - return m_frame ? m_frame->settings() : nullptr;
|
| + if (m_frame)
|
| + return m_frame->settings();
|
| + if (!m_defaultSettings)
|
| + m_defaultSettings = Settings::create();
|
| + return m_defaultSettings.get();
|
| }
|
|
|
| Range* Document::createRange()
|
|
|