Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |