| 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 | 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 int layoutCount() const { return m_layoutCount; } | 150 int layoutCount() const { return m_layoutCount; } |
| 151 | 151 |
| 152 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, | 152 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, |
| 153 unsigned& totalObjects, | 153 unsigned& totalObjects, |
| 154 bool& isPartial); | 154 bool& isPartial); |
| 155 | 155 |
| 156 bool needsLayout() const; | 156 bool needsLayout() const; |
| 157 bool checkDoesNotNeedLayout() const; | 157 bool checkDoesNotNeedLayout() const; |
| 158 void setNeedsLayout(); | 158 void setNeedsLayout(); |
| 159 | 159 |
| 160 void setNeedsUpdateWidgetGeometries() { | 160 void setNeedsUpdateGeometries() { m_needsUpdateGeometries = true; } |
| 161 m_needsUpdateWidgetGeometries = true; | |
| 162 } | |
| 163 | 161 |
| 164 // Methods for getting/setting the size Blink should use to layout the | 162 // Methods for getting/setting the size Blink should use to layout the |
| 165 // contents. | 163 // contents. |
| 166 // NOTE: Scrollbar exclusion is based on the FrameView's scrollbars. To | 164 // NOTE: Scrollbar exclusion is based on the FrameView's scrollbars. To |
| 167 // exclude scrollbars on the root PaintLayer, use LayoutView::layoutSize. | 165 // exclude scrollbars on the root PaintLayer, use LayoutView::layoutSize. |
| 168 IntSize layoutSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; | 166 IntSize layoutSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; |
| 169 void setLayoutSize(const IntSize&); | 167 void setLayoutSize(const IntSize&); |
| 170 | 168 |
| 171 // If this is set to false, the layout size will need to be explicitly set by | 169 // If this is set to false, the layout size will need to be explicitly set by |
| 172 // the owner. E.g. WebViewImpl sets its mainFrame's layout size manually | 170 // the owner. E.g. WebViewImpl sets its mainFrame's layout size manually |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 bool safeToPropagateScrollToParent() const { | 260 bool safeToPropagateScrollToParent() const { |
| 263 return m_safeToPropagateScrollToParent; | 261 return m_safeToPropagateScrollToParent; |
| 264 } | 262 } |
| 265 void setSafeToPropagateScrollToParent(bool isSafe) { | 263 void setSafeToPropagateScrollToParent(bool isSafe) { |
| 266 m_safeToPropagateScrollToParent = isSafe; | 264 m_safeToPropagateScrollToParent = isSafe; |
| 267 } | 265 } |
| 268 | 266 |
| 269 void addPart(LayoutPart*); | 267 void addPart(LayoutPart*); |
| 270 void removePart(LayoutPart*); | 268 void removePart(LayoutPart*); |
| 271 | 269 |
| 272 void updateWidgetGeometries(); | 270 void updateGeometries(); |
| 273 | 271 |
| 274 void addPartToUpdate(LayoutEmbeddedObject&); | 272 void addPartToUpdate(LayoutEmbeddedObject&); |
| 275 | 273 |
| 276 Color documentBackgroundColor() const; | 274 Color documentBackgroundColor() const; |
| 277 | 275 |
| 278 // Run all needed lifecycle stages. After calling this method, all frames will | 276 // Run all needed lifecycle stages. After calling this method, all frames will |
| 279 // be in the lifecycle state PaintInvalidationClean. If lifecycle throttling | 277 // be in the lifecycle state PaintInvalidationClean. If lifecycle throttling |
| 280 // is allowed (see DocumentLifecycle::AllowThrottlingScope), some frames may | 278 // is allowed (see DocumentLifecycle::AllowThrottlingScope), some frames may |
| 281 // skip the lifecycle update (e.g., based on visibility) and will not end up | 279 // skip the lifecycle update (e.g., based on visibility) and will not end up |
| 282 // being PaintInvalidationClean. | 280 // being PaintInvalidationClean. |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 | 954 |
| 957 // Override FrameViewBase methods to do point conversion via layoutObjects, in | 955 // Override FrameViewBase methods to do point conversion via layoutObjects, in |
| 958 // order to take transforms into account. | 956 // order to take transforms into account. |
| 959 IntRect convertToContainingFrameViewBase(const IntRect&) const override; | 957 IntRect convertToContainingFrameViewBase(const IntRect&) const override; |
| 960 IntRect convertFromContainingFrameViewBase(const IntRect&) const override; | 958 IntRect convertFromContainingFrameViewBase(const IntRect&) const override; |
| 961 IntPoint convertToContainingFrameViewBase(const IntPoint&) const override; | 959 IntPoint convertToContainingFrameViewBase(const IntPoint&) const override; |
| 962 IntPoint convertFromContainingFrameViewBase(const IntPoint&) const override; | 960 IntPoint convertFromContainingFrameViewBase(const IntPoint&) const override; |
| 963 | 961 |
| 964 void didChangeGlobalRootScroller() override; | 962 void didChangeGlobalRootScroller() override; |
| 965 | 963 |
| 966 void updateWidgetGeometriesIfNeeded(); | 964 void updateGeometriesIfNeeded(); |
| 967 | 965 |
| 968 bool wasViewportResized(); | 966 bool wasViewportResized(); |
| 969 void sendResizeEventIfNeeded(); | 967 void sendResizeEventIfNeeded(); |
| 970 | 968 |
| 971 void updateParentScrollableAreaSet(); | 969 void updateParentScrollableAreaSet(); |
| 972 | 970 |
| 973 void scheduleUpdateWidgetsIfNecessary(); | 971 void scheduleUpdateWidgetsIfNecessary(); |
| 974 void updateWidgetsTimerFired(TimerBase*); | 972 void updateWidgetsTimerFired(TimerBase*); |
| 975 bool updateWidgets(); | 973 bool updateWidgets(); |
| 976 | 974 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 float m_inputEventsScaleFactorForEmulation; | 1110 float m_inputEventsScaleFactorForEmulation; |
| 1113 | 1111 |
| 1114 IntSize m_layoutSize; | 1112 IntSize m_layoutSize; |
| 1115 IntSize m_initialViewportSize; | 1113 IntSize m_initialViewportSize; |
| 1116 bool m_layoutSizeFixedToFrameSize; | 1114 bool m_layoutSizeFixedToFrameSize; |
| 1117 | 1115 |
| 1118 TaskRunnerTimer<FrameView> m_didScrollTimer; | 1116 TaskRunnerTimer<FrameView> m_didScrollTimer; |
| 1119 | 1117 |
| 1120 Vector<IntRect> m_tickmarks; | 1118 Vector<IntRect> m_tickmarks; |
| 1121 | 1119 |
| 1122 bool m_needsUpdateWidgetGeometries; | 1120 bool m_needsUpdateGeometries; |
| 1123 | 1121 |
| 1124 #if DCHECK_IS_ON() | 1122 #if DCHECK_IS_ON() |
| 1125 // Verified when finalizing. | 1123 // Verified when finalizing. |
| 1126 bool m_hasBeenDisposed = false; | 1124 bool m_hasBeenDisposed = false; |
| 1127 #endif | 1125 #endif |
| 1128 | 1126 |
| 1129 ScrollbarMode m_horizontalScrollbarMode; | 1127 ScrollbarMode m_horizontalScrollbarMode; |
| 1130 ScrollbarMode m_verticalScrollbarMode; | 1128 ScrollbarMode m_verticalScrollbarMode; |
| 1131 | 1129 |
| 1132 bool m_horizontalScrollbarLock; | 1130 bool m_horizontalScrollbarLock; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 frameViewBase.isFrameView()); | 1260 frameViewBase.isFrameView()); |
| 1263 DEFINE_TYPE_CASTS(FrameView, | 1261 DEFINE_TYPE_CASTS(FrameView, |
| 1264 ScrollableArea, | 1262 ScrollableArea, |
| 1265 scrollableArea, | 1263 scrollableArea, |
| 1266 scrollableArea->isFrameView(), | 1264 scrollableArea->isFrameView(), |
| 1267 scrollableArea.isFrameView()); | 1265 scrollableArea.isFrameView()); |
| 1268 | 1266 |
| 1269 } // namespace blink | 1267 } // namespace blink |
| 1270 | 1268 |
| 1271 #endif // FrameView_h | 1269 #endif // FrameView_h |
| OLD | NEW |