| 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 5082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5093 const { | 5093 const { |
| 5094 MainThreadScrollingReasons reasons = | 5094 MainThreadScrollingReasons reasons = |
| 5095 static_cast<MainThreadScrollingReasons>(0); | 5095 static_cast<MainThreadScrollingReasons>(0); |
| 5096 | 5096 |
| 5097 if (shouldThrottleRendering()) | 5097 if (shouldThrottleRendering()) |
| 5098 return reasons; | 5098 return reasons; |
| 5099 | 5099 |
| 5100 if (hasBackgroundAttachmentFixedObjects()) | 5100 if (hasBackgroundAttachmentFixedObjects()) |
| 5101 reasons |= MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects; | 5101 reasons |= MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects; |
| 5102 | 5102 |
| 5103 reasons |= getStyleRelatedMainThreadScrollingReasons(); | |
| 5104 | |
| 5105 ScrollingReasons scrollingReasons = getScrollingReasons(); | 5103 ScrollingReasons scrollingReasons = getScrollingReasons(); |
| 5106 const bool mayBeScrolledByInput = (scrollingReasons == Scrollable); | 5104 const bool mayBeScrolledByInput = (scrollingReasons == Scrollable); |
| 5107 const bool mayBeScrolledByScript = | 5105 const bool mayBeScrolledByScript = |
| 5108 mayBeScrolledByInput || | 5106 mayBeScrolledByInput || |
| 5109 (scrollingReasons == NotScrollableExplicitlyDisabled); | 5107 (scrollingReasons == NotScrollableExplicitlyDisabled); |
| 5110 | 5108 |
| 5111 // TODO(awoloszyn) Currently crbug.com/304810 will let certain | 5109 // TODO(awoloszyn) Currently crbug.com/304810 will let certain |
| 5112 // overflow:hidden elements scroll on the compositor thread, so we should | 5110 // overflow:hidden elements scroll on the compositor thread, so we should |
| 5113 // not let this move there path as an optimization, when we have | 5111 // not let this move there path as an optimization, when we have |
| 5114 // slow-repaint elements. | 5112 // slow-repaint elements. |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5268 void FrameView::setAnimationHost( | 5266 void FrameView::setAnimationHost( |
| 5269 std::unique_ptr<CompositorAnimationHost> host) { | 5267 std::unique_ptr<CompositorAnimationHost> host) { |
| 5270 m_animationHost = std::move(host); | 5268 m_animationHost = std::move(host); |
| 5271 } | 5269 } |
| 5272 | 5270 |
| 5273 LayoutUnit FrameView::caretWidth() const { | 5271 LayoutUnit FrameView::caretWidth() const { |
| 5274 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); | 5272 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); |
| 5275 } | 5273 } |
| 5276 | 5274 |
| 5277 } // namespace blink | 5275 } // namespace blink |
| OLD | NEW |