Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1019)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2769763002: Merge the patch back into M58 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698