| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 namespace blink { | 62 namespace blink { |
| 63 | 63 |
| 64 class AXObjectCache; | 64 class AXObjectCache; |
| 65 class ComputedStyle; | 65 class ComputedStyle; |
| 66 class DocumentLifecycle; | 66 class DocumentLifecycle; |
| 67 class Cursor; | 67 class Cursor; |
| 68 class Element; | 68 class Element; |
| 69 class ElementVisibilityObserver; | 69 class ElementVisibilityObserver; |
| 70 class Frame; | 70 class Frame; |
| 71 class FloatSize; | 71 class FloatSize; |
| 72 class GeometryMapper; | |
| 73 class JSONArray; | 72 class JSONArray; |
| 74 class JSONObject; | 73 class JSONObject; |
| 75 class LayoutItem; | 74 class LayoutItem; |
| 76 class LayoutViewItem; | 75 class LayoutViewItem; |
| 77 class LayoutPart; | 76 class LayoutPart; |
| 78 class LocalFrame; | 77 class LocalFrame; |
| 79 class KURL; | 78 class KURL; |
| 80 class Node; | 79 class Node; |
| 81 class LayoutAnalyzer; | 80 class LayoutAnalyzer; |
| 82 class LayoutBox; | 81 class LayoutBox; |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 void applyTransformForTopFrameSpace(TransformState&); | 823 void applyTransformForTopFrameSpace(TransformState&); |
| 825 | 824 |
| 826 // TODO(kenrb): These are temporary methods pending resolution of | 825 // TODO(kenrb): These are temporary methods pending resolution of |
| 827 // https://crbug.com/680606. Animation timelines and hosts for scrolling | 826 // https://crbug.com/680606. Animation timelines and hosts for scrolling |
| 828 // are normally owned by ScrollingCoordinator, but there is only one | 827 // are normally owned by ScrollingCoordinator, but there is only one |
| 829 // of those objects per page. To get around this, we temporarily stash a | 828 // of those objects per page. To get around this, we temporarily stash a |
| 830 // unique timeline and host on each OOPIF FrameView. | 829 // unique timeline and host on each OOPIF FrameView. |
| 831 void setAnimationTimeline(std::unique_ptr<CompositorAnimationTimeline>); | 830 void setAnimationTimeline(std::unique_ptr<CompositorAnimationTimeline>); |
| 832 void setAnimationHost(std::unique_ptr<CompositorAnimationHost>); | 831 void setAnimationHost(std::unique_ptr<CompositorAnimationHost>); |
| 833 | 832 |
| 834 // Returns the GeometryMapper associated with the root local frame. | |
| 835 GeometryMapper& geometryMapper(); | |
| 836 | |
| 837 void crossOriginStatusChanged(); | 833 void crossOriginStatusChanged(); |
| 838 | 834 |
| 839 // The visual viewport can supply scrollbars which affect the existence of | 835 // The visual viewport can supply scrollbars which affect the existence of |
| 840 // our scrollbars (see: computeScrollbarExistence). | 836 // our scrollbars (see: computeScrollbarExistence). |
| 841 void visualViewportScrollbarsChanged(); | 837 void visualViewportScrollbarsChanged(); |
| 842 | 838 |
| 843 LayoutUnit caretWidth() const; | 839 LayoutUnit caretWidth() const; |
| 844 | 840 |
| 845 protected: | 841 protected: |
| 846 // Scroll the content via the compositor. | 842 // Scroll the content via the compositor. |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 // For recording main thread scrolling reasons | 1212 // For recording main thread scrolling reasons |
| 1217 // due to layout object properties. e.g. opacity, transform. | 1213 // due to layout object properties. e.g. opacity, transform. |
| 1218 // The size of the vector depends on the number of | 1214 // The size of the vector depends on the number of |
| 1219 // main thread scrolling reasons. | 1215 // main thread scrolling reasons. |
| 1220 Vector<int> m_mainThreadScrollingReasonsCounter; | 1216 Vector<int> m_mainThreadScrollingReasonsCounter; |
| 1221 | 1217 |
| 1222 // TODO(kenrb): Remove these when https://crbug.com/680606 is resolved. | 1218 // TODO(kenrb): Remove these when https://crbug.com/680606 is resolved. |
| 1223 std::unique_ptr<CompositorAnimationTimeline> m_animationTimeline; | 1219 std::unique_ptr<CompositorAnimationTimeline> m_animationTimeline; |
| 1224 std::unique_ptr<CompositorAnimationHost> m_animationHost; | 1220 std::unique_ptr<CompositorAnimationHost> m_animationHost; |
| 1225 | 1221 |
| 1226 std::unique_ptr<GeometryMapper> m_geometryMapper; | |
| 1227 | |
| 1228 Member<PrintContext> m_printContext; | 1222 Member<PrintContext> m_printContext; |
| 1229 | 1223 |
| 1230 FRIEND_TEST_ALL_PREFIXES(WebViewTest, DeviceEmulationResetScrollbars); | 1224 FRIEND_TEST_ALL_PREFIXES(WebViewTest, DeviceEmulationResetScrollbars); |
| 1231 }; | 1225 }; |
| 1232 | 1226 |
| 1233 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) { | 1227 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) { |
| 1234 if (m_isVisuallyNonEmpty) | 1228 if (m_isVisuallyNonEmpty) |
| 1235 return; | 1229 return; |
| 1236 m_visuallyNonEmptyCharacterCount += count; | 1230 m_visuallyNonEmptyCharacterCount += count; |
| 1237 // Use a threshold value to prevent very small amounts of visible content from | 1231 // Use a threshold value to prevent very small amounts of visible content from |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1261 frameViewBase.isFrameView()); | 1255 frameViewBase.isFrameView()); |
| 1262 DEFINE_TYPE_CASTS(FrameView, | 1256 DEFINE_TYPE_CASTS(FrameView, |
| 1263 ScrollableArea, | 1257 ScrollableArea, |
| 1264 scrollableArea, | 1258 scrollableArea, |
| 1265 scrollableArea->isFrameView(), | 1259 scrollableArea->isFrameView(), |
| 1266 scrollableArea.isFrameView()); | 1260 scrollableArea.isFrameView()); |
| 1267 | 1261 |
| 1268 } // namespace blink | 1262 } // namespace blink |
| 1269 | 1263 |
| 1270 #endif // FrameView_h | 1264 #endif // FrameView_h |
| OLD | NEW |