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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 5cfb85f3f5f5fddc20055ed245de877eeb10987f..3192a7a21100b96c6db25ec2b03234ab3d044413 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -431,8 +431,11 @@ void FrameView::setFrameRect(const IntRect& newRect) {
viewportSizeChanged(newRect.width() != oldRect.width(),
newRect.height() != oldRect.height());
- if (m_frame->isMainFrame())
+ if (m_frame->isMainFrame()) {
m_frame->host()->visualViewport().mainFrameDidChangeSize();
+ if (Document* document = m_frame->document())
+ document->styleEngine().initialViewportChanged();
+ }
frame().loader().restoreScrollPositionAndViewState();
}
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngineTest.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698