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

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

Issue 2405143003: Separate @viewport from other RuleSet construction. (Closed)
Patch Set: Missing resolve() Created 4 years, 2 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/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index d86ece1103a3f24dc760549f799999c57c1e5d3c..845621d217898eaad99fc7919939090b61cac085 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -404,10 +404,8 @@ void Page::settingsChanged(SettingsDelegate::ChangeType changeType) {
case SettingsDelegate::ViewportRuleChange: {
if (!mainFrame() || !mainFrame()->isLocalFrame())
break;
- Document* doc = toLocalFrame(mainFrame())->document();
- if (!doc || !doc->styleResolver())
- break;
- doc->styleResolver()->viewportStyleResolver()->collectViewportRules();
+ if (Document* doc = toLocalFrame(mainFrame())->document())
+ doc->styleEngine().updateViewport();
} break;
case SettingsDelegate::TextTrackKindUserPreferenceChange:
for (Frame* frame = mainFrame(); frame;
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698