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 5025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5036 | 5036 |
5037 if (!page()->settings().getThreadedScrollingEnabled()) | 5037 if (!page()->settings().getThreadedScrollingEnabled()) |
5038 reasons |= MainThreadScrollingReason::kThreadedScrollingDisabled; | 5038 reasons |= MainThreadScrollingReason::kThreadedScrollingDisabled; |
5039 | 5039 |
5040 if (!frame.isLocalFrame()) | 5040 if (!frame.isLocalFrame()) |
5041 return; | 5041 return; |
5042 | 5042 |
5043 FrameView& frameView = *toLocalFrame(frame).view(); | 5043 FrameView& frameView = *toLocalFrame(frame).view(); |
5044 if (frameView.shouldThrottleRendering()) | 5044 if (frameView.shouldThrottleRendering()) |
5045 return; | 5045 return; |
5046 if (!frameView.layerForScrolling()) | |
5047 return; | |
5048 | 5046 |
5049 reasons |= frameView.mainThreadScrollingReasonsPerFrame(); | 5047 reasons |= frameView.mainThreadScrollingReasonsPerFrame(); |
5050 if (GraphicsLayer* layerForScrolling = toLocalFrame(frame) | 5048 if (GraphicsLayer* layerForScrolling = toLocalFrame(frame) |
5051 .view() | 5049 .view() |
5052 ->layoutViewportScrollableArea() | 5050 ->layoutViewportScrollableArea() |
5053 ->layerForScrolling()) { | 5051 ->layerForScrolling()) { |
5054 if (WebLayer* platformLayerForScrolling = | 5052 if (WebLayer* platformLayerForScrolling = |
5055 layerForScrolling->platformLayer()) { | 5053 layerForScrolling->platformLayer()) { |
5056 if (reasons) { | 5054 if (reasons) { |
5057 platformLayerForScrolling->addMainThreadScrollingReasons(reasons); | 5055 platformLayerForScrolling->addMainThreadScrollingReasons(reasons); |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5253 void FrameView::setAnimationHost( | 5251 void FrameView::setAnimationHost( |
5254 std::unique_ptr<CompositorAnimationHost> host) { | 5252 std::unique_ptr<CompositorAnimationHost> host) { |
5255 m_animationHost = std::move(host); | 5253 m_animationHost = std::move(host); |
5256 } | 5254 } |
5257 | 5255 |
5258 LayoutUnit FrameView::caretWidth() const { | 5256 LayoutUnit FrameView::caretWidth() const { |
5259 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); | 5257 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); |
5260 } | 5258 } |
5261 | 5259 |
5262 } // namespace blink | 5260 } // namespace blink |
OLD | NEW |