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

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

Issue 2213553002: Delete FrameView::rectToCopyOnScroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/core/frame/FrameView.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) 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 reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 LayoutRect scrollIntoView( 398 LayoutRect scrollIntoView(
399 const LayoutRect& rectInContent, 399 const LayoutRect& rectInContent,
400 const ScrollAlignment& alignX, 400 const ScrollAlignment& alignX,
401 const ScrollAlignment& alignY, 401 const ScrollAlignment& alignY,
402 ScrollType = ProgrammaticScroll) override; 402 ScrollType = ProgrammaticScroll) override;
403 403
404 // The window that hosts the FrameView. The FrameView will communicate scrol ls and repaints to the 404 // The window that hosts the FrameView. The FrameView will communicate scrol ls and repaints to the
405 // host window in the window's coordinate space. 405 // host window in the window's coordinate space.
406 HostWindow* getHostWindow() const; 406 HostWindow* getHostWindow() const;
407 407
408 // Returns a clip rect in host window coordinates. Used to clip the blit on a scroll.
409 IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars) const;
410
411 typedef HeapHashSet<Member<Widget>> ChildrenWidgetSet; 408 typedef HeapHashSet<Member<Widget>> ChildrenWidgetSet;
412 409
413 // Functions for child manipulation and inspection. 410 // Functions for child manipulation and inspection.
414 void setParent(Widget*) override; 411 void setParent(Widget*) override;
415 void removeChild(Widget*); 412 void removeChild(Widget*);
416 void addChild(Widget*); 413 void addChild(Widget*);
417 const ChildrenWidgetSet* children() const { return &m_children; } 414 const ChildrenWidgetSet* children() const { return &m_children; }
418 415
419 // If the scroll view does not use a native widget, then it will have cross- platform Scrollbars. These functions 416 // If the scroll view does not use a native widget, then it will have cross- platform Scrollbars. These functions
420 // can be used to obtain those scrollbars. 417 // can be used to obtain those scrollbars.
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 bool shouldPerformScrollAnchoring() const override; 617 bool shouldPerformScrollAnchoring() const override;
621 618
622 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into PaintInval idator. 619 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into PaintInval idator.
623 void invalidatePaintIfNeeded(const PaintInvalidationState&); 620 void invalidatePaintIfNeeded(const PaintInvalidationState&);
624 621
625 protected: 622 protected:
626 // Scroll the content via the compositor. 623 // Scroll the content via the compositor.
627 bool scrollContentsFastPath(const IntSize& scrollDelta); 624 bool scrollContentsFastPath(const IntSize& scrollDelta);
628 625
629 // Scroll the content by invalidating everything. 626 // Scroll the content by invalidating everything.
630 void scrollContentsSlowPath(const IntRect& updateRect); 627 void scrollContentsSlowPath();
631 628
632 // These functions are used to create/destroy scrollbars. 629 // These functions are used to create/destroy scrollbars.
633 void setHasHorizontalScrollbar(bool); 630 void setHasHorizontalScrollbar(bool);
634 void setHasVerticalScrollbar(bool); 631 void setHasVerticalScrollbar(bool);
635 632
636 ScrollBehavior scrollBehaviorStyle() const override; 633 ScrollBehavior scrollBehaviorStyle() const override;
637 634
638 void scrollContentsIfNeeded(); 635 void scrollContentsIfNeeded();
639 636
640 enum ComputeScrollbarExistenceOption { 637 enum ComputeScrollbarExistenceOption {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 747
751 AXObjectCache* axObjectCache() const; 748 AXObjectCache* axObjectCache() const;
752 749
753 void setLayoutSizeInternal(const IntSize&); 750 void setLayoutSizeInternal(const IntSize&);
754 751
755 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass); 752 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass);
756 void adjustScrollbarOpacity(); 753 void adjustScrollbarOpacity();
757 void adjustScrollPositionFromUpdateScrollbars(); 754 void adjustScrollPositionFromUpdateScrollbars();
758 bool visualViewportSuppliesScrollbars() const; 755 bool visualViewportSuppliesScrollbars() const;
759 756
760 IntRect rectToCopyOnScroll() const;
761
762 bool isFrameViewScrollbar(const Widget* child) const { return horizontalScro llbar() == child || verticalScrollbar() == child; } 757 bool isFrameViewScrollbar(const Widget* child) const { return horizontalScro llbar() == child || verticalScrollbar() == child; }
763 758
764 ScrollingCoordinator* scrollingCoordinator() const; 759 ScrollingCoordinator* scrollingCoordinator() const;
765 760
766 void prepareLayoutAnalyzer(); 761 void prepareLayoutAnalyzer();
767 std::unique_ptr<TracedValue> analyzerCounters(); 762 std::unique_ptr<TracedValue> analyzerCounters();
768 763
769 // LayoutObject for the viewport-defining element (see Document::viewportDef iningElement). 764 // LayoutObject for the viewport-defining element (see Document::viewportDef iningElement).
770 LayoutObject* viewportLayoutObject() const; 765 LayoutObject* viewportLayoutObject() const;
771 766
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 958 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
964 setIsVisuallyNonEmpty(); 959 setIsVisuallyNonEmpty();
965 } 960 }
966 961
967 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 962 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
968 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 963 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
969 964
970 } // namespace blink 965 } // namespace blink
971 966
972 #endif // FrameView_h 967 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698