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