| 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 9c107592c0d797f84dfe57c01071d5e9ee4248ec..5db01377b74787388c6edd0f0d0e17f63694a966 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -1418,11 +1418,7 @@ FrameHost* Document::frameHost() const
|
|
|
| Settings* Document::settings() const
|
| {
|
| - if (m_frame)
|
| - return m_frame->settings();
|
| - if (!m_defaultSettings)
|
| - m_defaultSettings = Settings::create();
|
| - return m_defaultSettings.get();
|
| + return m_frame ? m_frame->settings() : nullptr;
|
| }
|
|
|
| Range* Document::createRange()
|
|
|