| 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 // Calls resumeScheduledEvents() | 836 // Calls resumeScheduledEvents() |
| 837 performPostLayoutTasks(); | 837 performPostLayoutTasks(); |
| 838 m_inSynchronousPostLayout = false; | 838 m_inSynchronousPostLayout = false; |
| 839 } | 839 } |
| 840 | 840 |
| 841 if (!m_postLayoutTasksTimer.isActive() && (needsLayout() || m_inSynchronousP
ostLayout)) { | 841 if (!m_postLayoutTasksTimer.isActive() && (needsLayout() || m_inSynchronousP
ostLayout)) { |
| 842 // If we need layout or are already in a synchronous call to postLayoutT
asks(), | 842 // If we need layout or are already in a synchronous call to postLayoutT
asks(), |
| 843 // defer widget updates and event dispatch until after we return. postLa
youtTasks() | 843 // defer widget updates and event dispatch until after we return. postLa
youtTasks() |
| 844 // can make us need to update again, and we can get stuck in a nasty cyc
le unless | 844 // can make us need to update again, and we can get stuck in a nasty cyc
le unless |
| 845 // we call it through the timer here. | 845 // we call it through the timer here. |
| 846 m_postLayoutTasksTimer.startOneShot(0); | 846 m_postLayoutTasksTimer.startOneShot(0, FROM_HERE); |
| 847 if (!partialLayout().isStopping() && needsLayout()) | 847 if (!partialLayout().isStopping() && needsLayout()) |
| 848 layout(); | 848 layout(); |
| 849 } | 849 } |
| 850 } | 850 } |
| 851 | 851 |
| 852 void FrameView::layout(bool allowSubtree) | 852 void FrameView::layout(bool allowSubtree) |
| 853 { | 853 { |
| 854 // We should never layout a Document which is not in a LocalFrame. | 854 // We should never layout a Document which is not in a LocalFrame. |
| 855 ASSERT(m_frame); | 855 ASSERT(m_frame); |
| 856 ASSERT(m_frame->view() == this); | 856 ASSERT(m_frame->view() == this); |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1659 if (RenderView* renderView = document->renderView()) { | 1659 if (RenderView* renderView = document->renderView()) { |
| 1660 if (renderView->usesCompositing()) { | 1660 if (renderView->usesCompositing()) { |
| 1661 // https://code.google.com/p/chromium/issues/detail?id=343767 | 1661 // https://code.google.com/p/chromium/issues/detail?id=343767 |
| 1662 DisableCompositingQueryAsserts disabler; | 1662 DisableCompositingQueryAsserts disabler; |
| 1663 renderView->compositor()->frameViewDidScroll(); | 1663 renderView->compositor()->frameViewDidScroll(); |
| 1664 } | 1664 } |
| 1665 } | 1665 } |
| 1666 | 1666 |
| 1667 if (m_didScrollTimer.isActive()) | 1667 if (m_didScrollTimer.isActive()) |
| 1668 m_didScrollTimer.stop(); | 1668 m_didScrollTimer.stop(); |
| 1669 m_didScrollTimer.startOneShot(resourcePriorityUpdateDelayAfterScroll); | 1669 m_didScrollTimer.startOneShot(resourcePriorityUpdateDelayAfterScroll, FROM_H
ERE); |
| 1670 | 1670 |
| 1671 if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache()) | 1671 if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache()) |
| 1672 cache->handleScrollPositionChanged(this); | 1672 cache->handleScrollPositionChanged(this); |
| 1673 | 1673 |
| 1674 frame().loader().saveScrollState(); | 1674 frame().loader().saveScrollState(); |
| 1675 } | 1675 } |
| 1676 | 1676 |
| 1677 void FrameView::didScrollTimerFired(Timer<FrameView>*) | 1677 void FrameView::didScrollTimerFired(Timer<FrameView>*) |
| 1678 { | 1678 { |
| 1679 if (m_frame->document() && m_frame->document()->renderer()) { | 1679 if (m_frame->document() && m_frame->document()->renderer()) { |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2046 | 2046 |
| 2047 FontFaceSet::didLayout(*m_frame->document()); | 2047 FontFaceSet::didLayout(*m_frame->document()); |
| 2048 | 2048 |
| 2049 updateWidgetPositions(); | 2049 updateWidgetPositions(); |
| 2050 | 2050 |
| 2051 // Plugins could have torn down the page inside updateWidgetPositions(). | 2051 // Plugins could have torn down the page inside updateWidgetPositions(). |
| 2052 if (!renderView()) | 2052 if (!renderView()) |
| 2053 return; | 2053 return; |
| 2054 | 2054 |
| 2055 if (!m_updateWidgetsTimer.isActive()) | 2055 if (!m_updateWidgetsTimer.isActive()) |
| 2056 m_updateWidgetsTimer.startOneShot(0); | 2056 m_updateWidgetsTimer.startOneShot(0, FROM_HERE); |
| 2057 | 2057 |
| 2058 if (Page* page = m_frame->page()) { | 2058 if (Page* page = m_frame->page()) { |
| 2059 if (ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordina
tor()) | 2059 if (ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordina
tor()) |
| 2060 scrollingCoordinator->notifyLayoutUpdated(); | 2060 scrollingCoordinator->notifyLayoutUpdated(); |
| 2061 } | 2061 } |
| 2062 | 2062 |
| 2063 scrollToAnchor(); | 2063 scrollToAnchor(); |
| 2064 | 2064 |
| 2065 sendResizeEventIfNeeded(); | 2065 sendResizeEventIfNeeded(); |
| 2066 } | 2066 } |
| (...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3193 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3193 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
| 3194 { | 3194 { |
| 3195 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3195 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
| 3196 if (AXObjectCache* cache = axObjectCache()) { | 3196 if (AXObjectCache* cache = axObjectCache()) { |
| 3197 cache->remove(scrollbar); | 3197 cache->remove(scrollbar); |
| 3198 cache->handleScrollbarUpdate(this); | 3198 cache->handleScrollbarUpdate(this); |
| 3199 } | 3199 } |
| 3200 } | 3200 } |
| 3201 | 3201 |
| 3202 } // namespace WebCore | 3202 } // namespace WebCore |
| OLD | NEW |