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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrameView.h

Issue 2911103002: Revert of Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Created 3 years, 6 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) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "platform/RuntimeEnabledFeatures.h" 44 #include "platform/RuntimeEnabledFeatures.h"
45 #include "platform/animation/CompositorAnimationHost.h" 45 #include "platform/animation/CompositorAnimationHost.h"
46 #include "platform/animation/CompositorAnimationTimeline.h" 46 #include "platform/animation/CompositorAnimationTimeline.h"
47 #include "platform/geometry/IntRect.h" 47 #include "platform/geometry/IntRect.h"
48 #include "platform/geometry/LayoutRect.h" 48 #include "platform/geometry/LayoutRect.h"
49 #include "platform/graphics/Color.h" 49 #include "platform/graphics/Color.h"
50 #include "platform/graphics/CompositorElementId.h" 50 #include "platform/graphics/CompositorElementId.h"
51 #include "platform/graphics/GraphicsLayerClient.h" 51 #include "platform/graphics/GraphicsLayerClient.h"
52 #include "platform/scroll/ScrollTypes.h" 52 #include "platform/scroll/ScrollTypes.h"
53 #include "platform/scroll/Scrollbar.h" 53 #include "platform/scroll/Scrollbar.h"
54 #include "platform/scroll/SmoothScrollSequencer.h"
55 #include "platform/wtf/Allocator.h" 54 #include "platform/wtf/Allocator.h"
56 #include "platform/wtf/AutoReset.h" 55 #include "platform/wtf/AutoReset.h"
57 #include "platform/wtf/Forward.h" 56 #include "platform/wtf/Forward.h"
58 #include "platform/wtf/HashSet.h" 57 #include "platform/wtf/HashSet.h"
59 #include "platform/wtf/ListHashSet.h" 58 #include "platform/wtf/ListHashSet.h"
60 #include "platform/wtf/text/WTFString.h" 59 #include "platform/wtf/text/WTFString.h"
61 #include "public/platform/ShapeProperties.h" 60 #include "public/platform/ShapeProperties.h"
62 #include "public/platform/WebDisplayMode.h" 61 #include "public/platform/WebDisplayMode.h"
63 #include "public/platform/WebRect.h" 62 #include "public/platform/WebRect.h"
64 63
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; 463 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override;
465 LayoutBox* GetLayoutBox() const override; 464 LayoutBox* GetLayoutBox() const override;
466 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, 465 FloatQuad LocalToVisibleContentQuad(const FloatQuad&,
467 const LayoutObject*, 466 const LayoutObject*,
468 unsigned = 0) const final; 467 unsigned = 0) const final;
469 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; 468 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final;
470 469
471 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content, 470 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content,
472 const ScrollAlignment& align_x, 471 const ScrollAlignment& align_x,
473 const ScrollAlignment& align_y, 472 const ScrollAlignment& align_y,
474 bool is_smooth,
475 ScrollType = kProgrammaticScroll) override; 473 ScrollType = kProgrammaticScroll) override;
476 474
477 // The window that hosts the LocalFrameView. The LocalFrameView will 475 // The window that hosts the LocalFrameView. The LocalFrameView will
478 // communicate scrolls and repaints to the host window in the window's 476 // communicate scrolls and repaints to the host window in the window's
479 // coordinate space. 477 // coordinate space.
480 PlatformChromeClient* GetChromeClient() const; 478 PlatformChromeClient* GetChromeClient() const;
481 479
482 SmoothScrollSequencer* GetSmoothScrollSequencer() const override;
483
484 // Functions for child manipulation and inspection. 480 // Functions for child manipulation and inspection.
485 bool IsSelfVisible() const { 481 bool IsSelfVisible() const {
486 return self_visible_; 482 return self_visible_;
487 } // Whether or not we have been explicitly marked as visible or not. 483 } // Whether or not we have been explicitly marked as visible or not.
488 bool IsParentVisible() const { 484 bool IsParentVisible() const {
489 return parent_visible_; 485 return parent_visible_;
490 } // Whether or not our parent is visible. 486 } // Whether or not our parent is visible.
491 bool IsVisible() const { 487 bool IsVisible() const {
492 return self_visible_ && parent_visible_; 488 return self_visible_ && parent_visible_;
493 } // Whether or not we are actually visible. 489 } // Whether or not we are actually visible.
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 frame_or_plugin.IsFrameView()); 1270 frame_or_plugin.IsFrameView());
1275 DEFINE_TYPE_CASTS(LocalFrameView, 1271 DEFINE_TYPE_CASTS(LocalFrameView,
1276 ScrollableArea, 1272 ScrollableArea,
1277 scrollableArea, 1273 scrollableArea,
1278 scrollableArea->IsFrameView(), 1274 scrollableArea->IsFrameView(),
1279 scrollableArea.IsFrameView()); 1275 scrollableArea.IsFrameView());
1280 1276
1281 } // namespace blink 1277 } // namespace blink
1282 1278
1283 #endif // LocalFrameView_h 1279 #endif // LocalFrameView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698