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 4843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4854 // partially painted version of this frame's contents if we skipped | 4854 // partially painted version of this frame's contents if we skipped |
4855 // painting them while the frame was throttled. | 4855 // painting them while the frame was throttled. |
4856 LayoutViewItem layoutViewItem = this->layoutViewItem(); | 4856 LayoutViewItem layoutViewItem = this->layoutViewItem(); |
4857 if (!layoutViewItem.isNull()) | 4857 if (!layoutViewItem.isNull()) |
4858 layoutViewItem.invalidatePaintForViewAndCompositedLayers(); | 4858 layoutViewItem.invalidatePaintForViewAndCompositedLayers(); |
4859 // Also need to update all paint properties that might be skipped while | 4859 // Also need to update all paint properties that might be skipped while |
4860 // the frame was throttled. | 4860 // the frame was throttled. |
4861 setSubtreeNeedsPaintPropertyUpdate(); | 4861 setSubtreeNeedsPaintPropertyUpdate(); |
4862 } | 4862 } |
4863 | 4863 |
4864 bool hasHandlers = m_frame->host() && | 4864 bool hasHandlers = m_frame->page() && |
4865 m_frame->host()->eventHandlerRegistry().hasEventHandlers( | 4865 m_frame->page()->eventHandlerRegistry().hasEventHandlers( |
4866 EventHandlerRegistry::TouchStartOrMoveEventBlocking); | 4866 EventHandlerRegistry::TouchStartOrMoveEventBlocking); |
4867 if (wasThrottled != canThrottleRendering() && scrollingCoordinator && | 4867 if (wasThrottled != canThrottleRendering() && scrollingCoordinator && |
4868 hasHandlers) | 4868 hasHandlers) |
4869 scrollingCoordinator->touchEventTargetRectsDidChange(); | 4869 scrollingCoordinator->touchEventTargetRectsDidChange(); |
4870 | 4870 |
4871 if (m_frame->frameScheduler()) { | 4871 if (m_frame->frameScheduler()) { |
4872 m_frame->frameScheduler()->setFrameVisible(!m_hiddenForThrottling); | 4872 m_frame->frameScheduler()->setFrameVisible(!m_hiddenForThrottling); |
4873 m_frame->frameScheduler()->setCrossOrigin(m_frame->isCrossOriginSubframe()); | 4873 m_frame->frameScheduler()->setCrossOrigin(m_frame->isCrossOriginSubframe()); |
4874 } | 4874 } |
4875 | 4875 |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5253 void FrameView::setAnimationHost( | 5253 void FrameView::setAnimationHost( |
5254 std::unique_ptr<CompositorAnimationHost> host) { | 5254 std::unique_ptr<CompositorAnimationHost> host) { |
5255 m_animationHost = std::move(host); | 5255 m_animationHost = std::move(host); |
5256 } | 5256 } |
5257 | 5257 |
5258 LayoutUnit FrameView::caretWidth() const { | 5258 LayoutUnit FrameView::caretWidth() const { |
5259 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); | 5259 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); |
5260 } | 5260 } |
5261 | 5261 |
5262 } // namespace blink | 5262 } // namespace blink |
OLD | NEW |