| 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 3999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4010 documentLoader->initialScrollState().wasScrolledByUser = true; | 4010 documentLoader->initialScrollState().wasScrolledByUser = true; |
| 4011 } | 4011 } |
| 4012 | 4012 |
| 4013 if (scrollType != AnchoringScroll && scrollType != ClampingScroll) | 4013 if (scrollType != AnchoringScroll && scrollType != ClampingScroll) |
| 4014 clearScrollAnchor(); | 4014 clearScrollAnchor(); |
| 4015 } | 4015 } |
| 4016 | 4016 |
| 4017 void FrameView::didChangeScrollOffset() { | 4017 void FrameView::didChangeScrollOffset() { |
| 4018 frame().loader().client()->didChangeScrollOffset(); | 4018 frame().loader().client()->didChangeScrollOffset(); |
| 4019 if (frame().isMainFrame()) | 4019 if (frame().isMainFrame()) |
| 4020 frame().host()->chromeClient().mainFrameScrollOffsetChanged(); | 4020 frame().page()->chromeClient().mainFrameScrollOffsetChanged(); |
| 4021 } | 4021 } |
| 4022 | 4022 |
| 4023 void FrameView::clearScrollAnchor() { | 4023 void FrameView::clearScrollAnchor() { |
| 4024 if (!RuntimeEnabledFeatures::scrollAnchoringEnabled()) | 4024 if (!RuntimeEnabledFeatures::scrollAnchoringEnabled()) |
| 4025 return; | 4025 return; |
| 4026 m_scrollAnchor.clear(); | 4026 m_scrollAnchor.clear(); |
| 4027 } | 4027 } |
| 4028 | 4028 |
| 4029 bool FrameView::hasOverlayScrollbars() const { | 4029 bool FrameView::hasOverlayScrollbars() const { |
| 4030 return (horizontalScrollbar() && | 4030 return (horizontalScrollbar() && |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4925 void FrameView::beginLifecycleUpdates() { | 4925 void FrameView::beginLifecycleUpdates() { |
| 4926 // Avoid pumping frames for the initially empty document. | 4926 // Avoid pumping frames for the initially empty document. |
| 4927 if (!frame().loader().stateMachine()->committedFirstRealDocumentLoad()) | 4927 if (!frame().loader().stateMachine()->committedFirstRealDocumentLoad()) |
| 4928 return; | 4928 return; |
| 4929 m_lifecycleUpdatesThrottled = false; | 4929 m_lifecycleUpdatesThrottled = false; |
| 4930 setupRenderThrottling(); | 4930 setupRenderThrottling(); |
| 4931 updateRenderThrottlingStatus(m_hiddenForThrottling, m_subtreeThrottled); | 4931 updateRenderThrottlingStatus(m_hiddenForThrottling, m_subtreeThrottled); |
| 4932 // The compositor will "defer commits" for the main frame until we | 4932 // The compositor will "defer commits" for the main frame until we |
| 4933 // explicitly request them. | 4933 // explicitly request them. |
| 4934 if (frame().isMainFrame()) | 4934 if (frame().isMainFrame()) |
| 4935 frame().host()->chromeClient().beginLifecycleUpdates(); | 4935 frame().page()->chromeClient().beginLifecycleUpdates(); |
| 4936 } | 4936 } |
| 4937 | 4937 |
| 4938 void FrameView::setInitialViewportSize(const IntSize& viewportSize) { | 4938 void FrameView::setInitialViewportSize(const IntSize& viewportSize) { |
| 4939 if (viewportSize == m_initialViewportSize) | 4939 if (viewportSize == m_initialViewportSize) |
| 4940 return; | 4940 return; |
| 4941 | 4941 |
| 4942 m_initialViewportSize = viewportSize; | 4942 m_initialViewportSize = viewportSize; |
| 4943 if (Document* document = m_frame->document()) | 4943 if (Document* document = m_frame->document()) |
| 4944 document->styleEngine().initialViewportChanged(); | 4944 document->styleEngine().initialViewportChanged(); |
| 4945 } | 4945 } |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5212 void FrameView::setAnimationHost( | 5212 void FrameView::setAnimationHost( |
| 5213 std::unique_ptr<CompositorAnimationHost> host) { | 5213 std::unique_ptr<CompositorAnimationHost> host) { |
| 5214 m_animationHost = std::move(host); | 5214 m_animationHost = std::move(host); |
| 5215 } | 5215 } |
| 5216 | 5216 |
| 5217 LayoutUnit FrameView::caretWidth() const { | 5217 LayoutUnit FrameView::caretWidth() const { |
| 5218 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); | 5218 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); |
| 5219 } | 5219 } |
| 5220 | 5220 |
| 5221 } // namespace blink | 5221 } // namespace blink |
| OLD | NEW |