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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1a99401fc2b06c315df222627dcd2e2638ddd12a..109106484c27697a26b82514d9de111443151a5a 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -433,6 +433,7 @@ void FrameView::setFrameRect(const IntRect& newRect) {
if (m_frame->isMainFrame())
m_frame->host()->visualViewport().mainFrameDidChangeSize();
+
frame().loader().restoreScrollPositionAndViewState();
}
}
@@ -4485,11 +4486,8 @@ void FrameView::setInitialViewportSize(const IntSize& viewportSize) {
return;
m_initialViewportSize = viewportSize;
- // TODO(rune@opera.com): Notify the viewport style resolver about the changed
- // initial viewport:
- //
- // if (Document* document = m_frame->document())
- // document->styleEngine().initialViewportChanged();
+ if (Document* document = m_frame->document())
+ document->styleEngine().initialViewportChanged();
}
int FrameView::initialViewportWidth() const {
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.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