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

Unified Diff: Source/core/page/Page.cpp

Issue 146683003: Settings should not call into inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
old mode 100644
new mode 100755
index 9a049162fa20f1a1370a3ff27ada57641e8b48cc..4262f9c3015442e9345f5a76388aa7db723f57b3
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -510,6 +510,15 @@ void Page::settingsChanged(SettingsDelegate::ChangeType changeType)
}
break;
case SettingsDelegate::TextAutosizingChange:
+ InspectorInstrumentation::textAutosizingEnabled(mainFrame(), settings().textAutosizingEnabled());
pfeldman 2014/01/24 16:25:21 I don't think we need this complexity in page, con
gnana 2014/01/27 16:31:07 Done.
+ setNeedsRecalcStyleInAllFrames();
+ break;
+ case SettingsDelegate::ScriptEnableChange:
+ InspectorInstrumentation::scriptsEnabled(mainFrame(), settings().scriptEnabled());
+ break;
+ case SettingsDelegate::DeviceScaleChange:
+ InspectorInstrumentation::fontScaleFactor(mainFrame(), settings().deviceScaleAdjustment());
+
// FIXME: I wonder if this needs to traverse frames like in WebViewImpl::resize, or whether there is only one document per Settings instance?
for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()) {
TextAutosizer* textAutosizer = frame->document()->textAutosizer();

Powered by Google App Engine
This is Rietveld 408576698