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

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

Issue 2651793012: [RootLayerScrolls] Annotate non-fast-scroll regions to correct layer (Closed)
Patch Set: Created 3 years, 10 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
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 13 matching lines...) Expand all
24 * Boston, MA 02110-1301, USA. 24 * Boston, MA 02110-1301, USA.
25 */ 25 */
26 26
27 #include "core/frame/FrameView.h" 27 #include "core/frame/FrameView.h"
28 28
29 #include "core/HTMLNames.h" 29 #include "core/HTMLNames.h"
30 #include "core/MediaTypeNames.h" 30 #include "core/MediaTypeNames.h"
31 #include "core/animation/DocumentAnimations.h" 31 #include "core/animation/DocumentAnimations.h"
32 #include "core/css/FontFaceSet.h" 32 #include "core/css/FontFaceSet.h"
33 #include "core/dom/AXObjectCache.h" 33 #include "core/dom/AXObjectCache.h"
34 #include "core/dom/ClientRectList.h"
34 #include "core/dom/DOMNodeIds.h" 35 #include "core/dom/DOMNodeIds.h"
35 #include "core/dom/ElementVisibilityObserver.h" 36 #include "core/dom/ElementVisibilityObserver.h"
36 #include "core/dom/Fullscreen.h" 37 #include "core/dom/Fullscreen.h"
37 #include "core/dom/IntersectionObserverCallback.h" 38 #include "core/dom/IntersectionObserverCallback.h"
38 #include "core/dom/IntersectionObserverController.h" 39 #include "core/dom/IntersectionObserverController.h"
39 #include "core/dom/IntersectionObserverInit.h" 40 #include "core/dom/IntersectionObserverInit.h"
40 #include "core/dom/ResizeObserverController.h" 41 #include "core/dom/ResizeObserverController.h"
41 #include "core/dom/StyleChangeReason.h" 42 #include "core/dom/StyleChangeReason.h"
42 #include "core/dom/TaskRunnerHelper.h" 43 #include "core/dom/TaskRunnerHelper.h"
43 #include "core/editing/EditingUtilities.h" 44 #include "core/editing/EditingUtilities.h"
(...skipping 4329 matching lines...) Expand 10 before | Expand all | Expand 10 after
4373 setScrollOffset( 4374 setScrollOffset(
4374 ScrollOffset(exposeRect.x().toFloat(), exposeRect.y().toFloat()), 4375 ScrollOffset(exposeRect.x().toFloat(), exposeRect.y().toFloat()),
4375 scrollType); 4376 scrollType);
4376 } 4377 }
4377 4378
4378 // Scrolling the FrameView cannot change the input rect's location relative to 4379 // Scrolling the FrameView cannot change the input rect's location relative to
4379 // the document. 4380 // the document.
4380 return rectInContent; 4381 return rectInContent;
4381 } 4382 }
4382 4383
4384 ClientRectList* FrameView::nonFastScrollableRects() const {
4385 if (!layerForScrolling())
4386 return ClientRectList::create();
4387 return ClientRectList::create(
4388 layerForScrolling()->platformLayer()->nonFastScrollableRegion());
4389 }
4390
4383 IntRect FrameView::scrollCornerRect() const { 4391 IntRect FrameView::scrollCornerRect() const {
4384 IntRect cornerRect; 4392 IntRect cornerRect;
4385 4393
4386 if (hasOverlayScrollbars()) 4394 if (hasOverlayScrollbars())
4387 return cornerRect; 4395 return cornerRect;
4388 4396
4389 if (horizontalScrollbar() && width() - horizontalScrollbar()->width() > 0) { 4397 if (horizontalScrollbar() && width() - horizontalScrollbar()->width() > 0) {
4390 cornerRect.unite(IntRect(shouldPlaceVerticalScrollbarOnLeft() 4398 cornerRect.unite(IntRect(shouldPlaceVerticalScrollbarOnLeft()
4391 ? 0 4399 ? 0
4392 : horizontalScrollbar()->width(), 4400 : horizontalScrollbar()->width(),
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
5062 std::unique_ptr<CompositorAnimationTimeline> timeline) { 5070 std::unique_ptr<CompositorAnimationTimeline> timeline) {
5063 m_animationTimeline = std::move(timeline); 5071 m_animationTimeline = std::move(timeline);
5064 } 5072 }
5065 5073
5066 void FrameView::setAnimationHost( 5074 void FrameView::setAnimationHost(
5067 std::unique_ptr<CompositorAnimationHost> host) { 5075 std::unique_ptr<CompositorAnimationHost> host) {
5068 m_animationHost = std::move(host); 5076 m_animationHost = std::move(host);
5069 } 5077 }
5070 5078
5071 } // namespace blink 5079 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698