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

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

Issue 1294233004: Subtree caching implementation in blink-core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class Page; 70 class Page;
71 class ScrollingCoordinator; 71 class ScrollingCoordinator;
72 class TracedValue; 72 class TracedValue;
73 struct AnnotatedRegionValue; 73 struct AnnotatedRegionValue;
74 struct CompositedSelection; 74 struct CompositedSelection;
75 75
76 typedef unsigned long long DOMTimeStamp; 76 typedef unsigned long long DOMTimeStamp;
77 77
78 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { 78 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea {
79 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FrameView); 79 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FrameView);
80
81 friend class DisplayItemListPaintTestForSlimmingPaintV2;
82 friend class Internals;
83 friend class LayoutPart; // for invalidateTreeIfNeeded
84 friend class LayoutView; // for contentRectangleForPaintInvalidation
85
80 public: 86 public:
81 friend class LayoutView;
82 friend class Internals;
83
84 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*); 87 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*);
85 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize& initialSize); 88 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize& initialSize);
86 89
87 ~FrameView() override; 90 ~FrameView() override;
88 91
89 void invalidateRect(const IntRect&) override; 92 void invalidateRect(const IntRect&) override;
90 void setFrameRect(const IntRect&) override; 93 void setFrameRect(const IntRect&) override;
91 94
92 LocalFrame& frame() const 95 LocalFrame& frame() const
93 { 96 {
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 603
601 private: 604 private:
602 explicit FrameView(LocalFrame*); 605 explicit FrameView(LocalFrame*);
603 606
604 void setScrollOffset(const IntPoint&, ScrollType) override; 607 void setScrollOffset(const IntPoint&, ScrollType) override;
605 void setScrollOffset(const DoublePoint&, ScrollType) override; 608 void setScrollOffset(const DoublePoint&, ScrollType) override;
606 609
607 enum LifeCycleUpdateOption { 610 enum LifeCycleUpdateOption {
608 AllPhases, 611 AllPhases,
609 OnlyUpToCompositingCleanPlusScrolling, 612 OnlyUpToCompositingCleanPlusScrolling,
613 OnlyUpToPaintForSlimmingPaintV2Clean,
610 }; 614 };
611 615
612 void updateLifecyclePhasesInternal(LifeCycleUpdateOption); 616 void updateLifecyclePhasesInternal(LifeCycleUpdateOption);
613 void invalidateTreeIfNeededRecursive(); 617 void invalidateTreeIfNeededRecursive();
614 void scrollContentsIfNeededRecursive(); 618 void scrollContentsIfNeededRecursive();
615 void updateStyleAndLayoutIfNeededRecursive(); 619 void updateStyleAndLayoutIfNeededRecursive();
616 void paintForSlimmingPaintV2(); 620 void paintForSlimmingPaintV2();
617 void compositeForSlimmingPaintV2(); 621 void compositeForSlimmingPaintV2();
618 622
619 void reset(); 623 void reset();
620 void init(); 624 void init();
621 625
622 void clearLayoutSubtreeRootsAndMarkContainingBlocks(); 626 void clearLayoutSubtreeRootsAndMarkContainingBlocks();
623 627
624 // Called when our frame rect changes (or the rect/scroll position of an anc estor changes). 628 // Called when our frame rect changes (or the rect/scroll position of an anc estor changes).
625 void frameRectsChanged() override; 629 void frameRectsChanged() override;
626 630
627 friend class LayoutPart;
628
629 bool contentsInCompositedLayer() const; 631 bool contentsInCompositedLayer() const;
630 632
631 void applyOverflowToViewport(LayoutObject*, ScrollbarMode& hMode, ScrollbarM ode& vMode); 633 void applyOverflowToViewport(LayoutObject*, ScrollbarMode& hMode, ScrollbarM ode& vMode);
632 634
633 void updateCounters(); 635 void updateCounters();
634 void forceLayoutParentViewIfNeeded(); 636 void forceLayoutParentViewIfNeeded();
635 void performPreLayoutTasks(); 637 void performPreLayoutTasks();
636 void performLayout(bool inSubtreeLayout); 638 void performLayout(bool inSubtreeLayout);
637 void scheduleOrPerformPostLayoutTasks(); 639 void scheduleOrPerformPostLayoutTasks();
638 void performPostLayoutTasks(); 640 void performPostLayoutTasks();
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 static const unsigned visualPixelThreshold = 32 * 32; 863 static const unsigned visualPixelThreshold = 32 * 32;
862 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 864 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
863 setIsVisuallyNonEmpty(); 865 setIsVisuallyNonEmpty();
864 } 866 }
865 867
866 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 868 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
867 869
868 } // namespace blink 870 } // namespace blink
869 871
870 #endif // FrameView_h 872 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/paint/DeprecatedPaintLayer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698