OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |