| 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 4878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4889 const { | 4889 const { |
| 4890 MainThreadScrollingReasons reasons = | 4890 MainThreadScrollingReasons reasons = |
| 4891 static_cast<MainThreadScrollingReasons>(0); | 4891 static_cast<MainThreadScrollingReasons>(0); |
| 4892 | 4892 |
| 4893 if (shouldThrottleRendering()) | 4893 if (shouldThrottleRendering()) |
| 4894 return reasons; | 4894 return reasons; |
| 4895 | 4895 |
| 4896 if (hasBackgroundAttachmentFixedObjects()) | 4896 if (hasBackgroundAttachmentFixedObjects()) |
| 4897 reasons |= MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects; | 4897 reasons |= MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects; |
| 4898 | 4898 |
| 4899 reasons |= getStyleRelatedMainThreadScrollingReasons(); | |
| 4900 | |
| 4901 ScrollingReasons scrollingReasons = getScrollingReasons(); | 4899 ScrollingReasons scrollingReasons = getScrollingReasons(); |
| 4902 const bool mayBeScrolledByInput = (scrollingReasons == Scrollable); | 4900 const bool mayBeScrolledByInput = (scrollingReasons == Scrollable); |
| 4903 const bool mayBeScrolledByScript = | 4901 const bool mayBeScrolledByScript = |
| 4904 mayBeScrolledByInput || | 4902 mayBeScrolledByInput || |
| 4905 (scrollingReasons == NotScrollableExplicitlyDisabled); | 4903 (scrollingReasons == NotScrollableExplicitlyDisabled); |
| 4906 | 4904 |
| 4907 // TODO(awoloszyn) Currently crbug.com/304810 will let certain | 4905 // TODO(awoloszyn) Currently crbug.com/304810 will let certain |
| 4908 // overflow:hidden elements scroll on the compositor thread, so we should | 4906 // overflow:hidden elements scroll on the compositor thread, so we should |
| 4909 // not let this move there path as an optimization, when we have | 4907 // not let this move there path as an optimization, when we have |
| 4910 // slow-repaint elements. | 4908 // slow-repaint elements. |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5060 std::unique_ptr<CompositorAnimationTimeline> timeline) { | 5058 std::unique_ptr<CompositorAnimationTimeline> timeline) { |
| 5061 m_animationTimeline = std::move(timeline); | 5059 m_animationTimeline = std::move(timeline); |
| 5062 } | 5060 } |
| 5063 | 5061 |
| 5064 void FrameView::setAnimationHost( | 5062 void FrameView::setAnimationHost( |
| 5065 std::unique_ptr<CompositorAnimationHost> host) { | 5063 std::unique_ptr<CompositorAnimationHost> host) { |
| 5066 m_animationHost = std::move(host); | 5064 m_animationHost = std::move(host); |
| 5067 } | 5065 } |
| 5068 | 5066 |
| 5069 } // namespace blink | 5067 } // namespace blink |
| OLD | NEW |