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

Unified Diff: Source/core/inspector/InspectorPageAgent.cpp

Issue 253843007: [DevTools] Clean up text autosizing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test Created 6 years, 8 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
« no previous file with comments | « LayoutTests/inspector/text-autosizing-override-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorPageAgent.cpp
diff --git a/Source/core/inspector/InspectorPageAgent.cpp b/Source/core/inspector/InspectorPageAgent.cpp
index b52484a842069c0bf25644f2b0bd932b6f38af81..9b23374ca46dc52040de08e230f9fac192755fc6 100644
--- a/Source/core/inspector/InspectorPageAgent.cpp
+++ b/Source/core/inspector/InspectorPageAgent.cpp
@@ -1159,6 +1159,9 @@ void InspectorPageAgent::updateViewMetrics(int width, int height, double deviceS
if (m_deviceMetricsOverridden) {
m_page->settings().setTextAutosizingEnabled(textAutosizingEnabled);
m_page->settings().setDeviceScaleAdjustment(fontScaleFactor);
+ } else {
+ m_page->settings().setTextAutosizingEnabled(m_embedderTextAutosizingEnabled);
+ m_page->settings().setDeviceScaleAdjustment(m_embedderFontScaleFactor);
}
// FIXME: allow metrics override, fps counter and continuous painting at the same time: crbug.com/299837.
« no previous file with comments | « LayoutTests/inspector/text-autosizing-override-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698