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

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

Issue 1945353002: [Layout API] Start converting ScrollAnchor to new layout API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/layout/ScrollAnchor.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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void setFrameRect(const IntRect&) override; 100 void setFrameRect(const IntRect&) override;
101 101
102 LocalFrame& frame() const 102 LocalFrame& frame() const
103 { 103 {
104 ASSERT(m_frame); 104 ASSERT(m_frame);
105 return *m_frame; 105 return *m_frame;
106 } 106 }
107 107
108 Page* page() const; 108 Page* page() const;
109 109
110 // TODO(pilgrim) replace all instances of layoutView() with layoutViewItem()
111 // https://crbug.com/499321
110 LayoutView* layoutView() const; 112 LayoutView* layoutView() const;
113 LayoutViewItem layoutViewItem() const
114 {
115 return LayoutViewItem(this->layoutView());
116 }
111 117
112 void setCanHaveScrollbars(bool); 118 void setCanHaveScrollbars(bool);
113 119
114 Scrollbar* createScrollbar(ScrollbarOrientation); 120 Scrollbar* createScrollbar(ScrollbarOrientation);
115 121
116 void setContentsSize(const IntSize&); 122 void setContentsSize(const IntSize&);
117 123
118 void layout(); 124 void layout();
119 bool didFirstLayout() const; 125 bool didFirstLayout() const;
120 void scheduleRelayout(); 126 void scheduleRelayout();
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 void setNeedsUpdateViewportIntersection(); 762 void setNeedsUpdateViewportIntersection();
757 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption); 763 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption);
758 void updateViewportIntersectionIfNeeded(); 764 void updateViewportIntersectionIfNeeded();
759 void notifyRenderThrottlingObservers(); 765 void notifyRenderThrottlingObservers();
760 void updateThrottlingStatus(); 766 void updateThrottlingStatus();
761 767
762 // PaintInvalidationCapableScrollableArea 768 // PaintInvalidationCapableScrollableArea
763 LayoutBox& boxForScrollControlPaintInvalidation() const override; 769 LayoutBox& boxForScrollControlPaintInvalidation() const override;
764 LayoutScrollbarPart* resizer() const override { return nullptr; } 770 LayoutScrollbarPart* resizer() const override { return nullptr; }
765 771
766 LayoutViewItem layoutViewItem() const
767 {
768 return LayoutViewItem(this->layoutView());
769 }
770
771 LayoutSize m_size; 772 LayoutSize m_size;
772 773
773 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet; 774 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet;
774 EmbeddedObjectSet m_partUpdateSet; 775 EmbeddedObjectSet m_partUpdateSet;
775 776
776 // FIXME: These are just "children" of the FrameView and should be Member<Wi dget> instead. 777 // FIXME: These are just "children" of the FrameView and should be Member<Wi dget> instead.
777 HashSet<RefPtr<LayoutPart>> m_parts; 778 HashSet<RefPtr<LayoutPart>> m_parts;
778 779
779 // The RefPtr cycle between LocalFrame and FrameView is broken 780 // The RefPtr cycle between LocalFrame and FrameView is broken
780 // when a LocalFrame is detached by LocalFrame::detach(). 781 // when a LocalFrame is detached by LocalFrame::detach().
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 936 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
936 setIsVisuallyNonEmpty(); 937 setIsVisuallyNonEmpty();
937 } 938 }
938 939
939 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 940 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
940 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 941 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
941 942
942 } // namespace blink 943 } // namespace blink
943 944
944 #endif // FrameView_h 945 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ScrollAnchor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698