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

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

Issue 979033003: Move code from StyleResolver to ViewportStyleResolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 5 years, 9 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 | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index afae84c36062a76c4e48a2a9c8541726770bbeb5..3f27bd50248008af9a0301c357a945318d8a4105 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -20,6 +20,7 @@
#include "config.h"
#include "core/page/Page.h"
+#include "core/css/resolver/ViewportStyleResolver.h"
#include "core/dom/ClientRectList.h"
#include "core/dom/DocumentMarkerController.h"
#include "core/dom/StyleEngine.h"
@@ -515,6 +516,17 @@ void Page::settingsChanged(SettingsDelegate::ChangeType changeType)
if (!mainFrame() || !mainFrame()->isLocalFrame())
break;
deprecatedLocalMainFrame()->document()->axObjectCacheOwner().clearAXObjectCache();
+ break;
+ case SettingsDelegate::ViewportRuleChange:
+ {
+ if (!mainFrame() || !mainFrame()->isLocalFrame())
+ break;
+ Document* doc = toLocalFrame(mainFrame())->document();
+ if (!doc || !doc->styleResolver())
+ break;
+ doc->styleResolver()->viewportStyleResolver()->collectViewportRules();
+ }
+ break;
}
}
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698