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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2146 LayoutViewItem layoutViewItem = this->layoutViewItem(); 2146 LayoutViewItem layoutViewItem = this->layoutViewItem();
2147 if (layoutViewItem.isNull() || layoutViewItem.document().printing()) 2147 if (layoutViewItem.isNull() || layoutViewItem.document().printing())
2148 return; 2148 return;
2149 2149
2150 if (!wasViewportResized()) 2150 if (!wasViewportResized())
2151 return; 2151 return;
2152 2152
2153 m_lastViewportSize = layoutSize(IncludeScrollbars); 2153 m_lastViewportSize = layoutSize(IncludeScrollbars);
2154 m_lastZoomFactor = layoutViewItem.style()->zoom(); 2154 m_lastZoomFactor = layoutViewItem.style()->zoom();
2155 2155
2156 if (RuntimeEnabledFeatures::visualViewportAPIEnabled())
2157 m_frame->document()->enqueueVisualViewportResizeEvent();
2158
2156 m_frame->document()->enqueueResizeEvent(); 2159 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
2157 2160
2158 if (m_frame->isMainFrame()) 2161 if (m_frame->isMainFrame())
2159 InspectorInstrumentation::didResizeMainFrame(m_frame.get()); 2162 InspectorInstrumentation::didResizeMainFrame(m_frame.get());
2160 } 2163 }
2161 2164
2162 void FrameView::postLayoutTimerFired(TimerBase*) 2165 void FrameView::postLayoutTimerFired(TimerBase*)
2163 { 2166 {
2164 performPostLayoutTasks(); 2167 performPostLayoutTasks();
2165 } 2168 }
2166 2169
(...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after
4248 } 4251 }
4249 4252
4250 bool FrameView::canThrottleRendering() const 4253 bool FrameView::canThrottleRendering() const
4251 { 4254 {
4252 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) 4255 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled())
4253 return false; 4256 return false;
4254 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); 4257 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling);
4255 } 4258 }
4256 4259
4257 } // namespace blink 4260 } // namespace blink
OLDNEW
« 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