Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2336693002: Rendering text to a canvas in a frame-less document. (Closed)
Patch Set: Adding the failed tests to TestExpectations for Mac. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698