| 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 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1633 return scrollbarInclusion == ExcludeScrollbars ? excludeScrollbars(m_layoutS
ize) : m_layoutSize; | 1633 return scrollbarInclusion == ExcludeScrollbars ? excludeScrollbars(m_layoutS
ize) : m_layoutSize; |
| 1634 } | 1634 } |
| 1635 | 1635 |
| 1636 void FrameView::setLayoutSize(const IntSize& size) | 1636 void FrameView::setLayoutSize(const IntSize& size) |
| 1637 { | 1637 { |
| 1638 ASSERT(!layoutSizeFixedToFrameSize()); | 1638 ASSERT(!layoutSizeFixedToFrameSize()); |
| 1639 | 1639 |
| 1640 setLayoutSizeInternal(size); | 1640 setLayoutSizeInternal(size); |
| 1641 } | 1641 } |
| 1642 | 1642 |
| 1643 void FrameView::didScrollTimerFired(Timer<FrameView>*) | 1643 void FrameView::didScrollTimerFired(TimerBase*) |
| 1644 { | 1644 { |
| 1645 if (m_frame->document() && !m_frame->document()->layoutViewItem().isNull()) | 1645 if (m_frame->document() && !m_frame->document()->layoutViewItem().isNull()) |
| 1646 m_frame->document()->fetcher()->updateAllImageResourcePriorities(); | 1646 m_frame->document()->fetcher()->updateAllImageResourcePriorities(); |
| 1647 } | 1647 } |
| 1648 | 1648 |
| 1649 void FrameView::updateLayersAndCompositingAfterScrollIfNeeded(const DoubleSize&
scrollDelta) | 1649 void FrameView::updateLayersAndCompositingAfterScrollIfNeeded(const DoubleSize&
scrollDelta) |
| 1650 { | 1650 { |
| 1651 // Nothing to do after scrolling if there are no fixed position elements. | 1651 // Nothing to do after scrolling if there are no fixed position elements. |
| 1652 if (!hasViewportConstrainedObjects()) | 1652 if (!hasViewportConstrainedObjects()) |
| 1653 return; | 1653 return; |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2056 object.updateWidgetGeometry(); | 2056 object.updateWidgetGeometry(); |
| 2057 | 2057 |
| 2058 // Prevent plugins from causing infinite updates of themselves. | 2058 // Prevent plugins from causing infinite updates of themselves. |
| 2059 // FIXME: Do we really need to prevent this? | 2059 // FIXME: Do we really need to prevent this? |
| 2060 m_partUpdateSet.remove(&object); | 2060 m_partUpdateSet.remove(&object); |
| 2061 } | 2061 } |
| 2062 | 2062 |
| 2063 return m_partUpdateSet.isEmpty(); | 2063 return m_partUpdateSet.isEmpty(); |
| 2064 } | 2064 } |
| 2065 | 2065 |
| 2066 void FrameView::updateWidgetsTimerFired(Timer<FrameView>*) | 2066 void FrameView::updateWidgetsTimerFired(TimerBase*) |
| 2067 { | 2067 { |
| 2068 ASSERT(!isInPerformLayout()); | 2068 ASSERT(!isInPerformLayout()); |
| 2069 m_updateWidgetsTimer.stop(); | 2069 m_updateWidgetsTimer.stop(); |
| 2070 for (unsigned i = 0; i < maxUpdateWidgetsIterations; ++i) { | 2070 for (unsigned i = 0; i < maxUpdateWidgetsIterations; ++i) { |
| 2071 if (updateWidgets()) | 2071 if (updateWidgets()) |
| 2072 return; | 2072 return; |
| 2073 } | 2073 } |
| 2074 } | 2074 } |
| 2075 | 2075 |
| 2076 void FrameView::flushAnyPendingPostLayoutTasks() | 2076 void FrameView::flushAnyPendingPostLayoutTasks() |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2155 | 2155 |
| 2156 m_lastViewportSize = layoutSize(IncludeScrollbars); | 2156 m_lastViewportSize = layoutSize(IncludeScrollbars); |
| 2157 m_lastZoomFactor = layoutViewItem.style()->zoom(); | 2157 m_lastZoomFactor = layoutViewItem.style()->zoom(); |
| 2158 | 2158 |
| 2159 m_frame->document()->enqueueResizeEvent(); | 2159 m_frame->document()->enqueueResizeEvent(); |
| 2160 | 2160 |
| 2161 if (m_frame->isMainFrame()) | 2161 if (m_frame->isMainFrame()) |
| 2162 InspectorInstrumentation::didResizeMainFrame(m_frame.get()); | 2162 InspectorInstrumentation::didResizeMainFrame(m_frame.get()); |
| 2163 } | 2163 } |
| 2164 | 2164 |
| 2165 void FrameView::postLayoutTimerFired(Timer<FrameView>*) | 2165 void FrameView::postLayoutTimerFired(TimerBase*) |
| 2166 { | 2166 { |
| 2167 performPostLayoutTasks(); | 2167 performPostLayoutTasks(); |
| 2168 } | 2168 } |
| 2169 | 2169 |
| 2170 void FrameView::updateCounters() | 2170 void FrameView::updateCounters() |
| 2171 { | 2171 { |
| 2172 LayoutView* view = layoutView(); | 2172 LayoutView* view = layoutView(); |
| 2173 if (!view->hasLayoutCounters()) | 2173 if (!view->hasLayoutCounters()) |
| 2174 return; | 2174 return; |
| 2175 | 2175 |
| (...skipping 2100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4276 } | 4276 } |
| 4277 | 4277 |
| 4278 bool FrameView::canThrottleRendering() const | 4278 bool FrameView::canThrottleRendering() const |
| 4279 { | 4279 { |
| 4280 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) | 4280 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) |
| 4281 return false; | 4281 return false; |
| 4282 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot
tling); | 4282 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot
tling); |
| 4283 } | 4283 } |
| 4284 | 4284 |
| 4285 } // namespace blink | 4285 } // namespace blink |
| OLD | NEW |