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

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

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

Powered by Google App Engine
This is Rietveld 408576698