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

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

Issue 2420413005: Collect @viewport before constructing RuleSets. (Closed)
Patch Set: Rebased 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..37ab917a01e66725e4b2f5a8e26e629c20c777ea 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().viewportRulesChanged();
} 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