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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2249483002: Fire visualViewport resize event when browser zoomed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/LayoutTests/fast/dom/viewport/viewport-dimensions-under-browser-zoom.html ('k') | no next file » | 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 15cff79b46d15ca13cc20c86a0a8353235f3a9d2..e055f72e2c64f16dd5f29322a5b8ee310f6f8e98 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2153,6 +2153,9 @@ void FrameView::sendResizeEventIfNeeded()
m_lastViewportSize = layoutSize(IncludeScrollbars);
m_lastZoomFactor = layoutViewItem.style()->zoom();
+ if (RuntimeEnabledFeatures::visualViewportAPIEnabled())
+ m_frame->document()->enqueueVisualViewportResizeEvent();
+
m_frame->document()->enqueueResizeEvent();
ymalik 2016/08/15 19:12:48 @dtapuska, this is where we send window resize eve
bokan 2016/08/18 21:18:11 Yah, I'm not sure about this. Perhaps it'd be bett
if (m_frame->isMainFrame())
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-under-browser-zoom.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698