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

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

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 class PaintArtifactCompositor; 88 class PaintArtifactCompositor;
89 class PaintController; 89 class PaintController;
90 class PaintInvalidationState; 90 class PaintInvalidationState;
91 class Page; 91 class Page;
92 class PrintContext; 92 class PrintContext;
93 class ScrollingCoordinator; 93 class ScrollingCoordinator;
94 class TracedValue; 94 class TracedValue;
95 class TransformState; 95 class TransformState;
96 struct AnnotatedRegionValue; 96 struct AnnotatedRegionValue;
97 struct CompositedSelection; 97 struct CompositedSelection;
98 struct TreeStats;
98 99
99 typedef unsigned long long DOMTimeStamp; 100 typedef unsigned long long DOMTimeStamp;
100 101
101 class CORE_EXPORT FrameView final 102 class CORE_EXPORT FrameView final
102 : public FrameViewBase, 103 : public FrameViewBase,
103 public PaintInvalidationCapableScrollableArea { 104 public PaintInvalidationCapableScrollableArea {
104 USING_GARBAGE_COLLECTED_MIXIN(FrameView); 105 USING_GARBAGE_COLLECTED_MIXIN(FrameView);
105 106
106 friend class PaintControllerPaintTestBase; 107 friend class PaintControllerPaintTestBase;
107 friend class Internals; 108 friend class Internals;
(...skipping 19 matching lines...) Expand all
127 // https://crbug.com/499321 128 // https://crbug.com/499321
128 LayoutView* layoutView() const; 129 LayoutView* layoutView() const;
129 LayoutViewItem layoutViewItem() const; 130 LayoutViewItem layoutViewItem() const;
130 131
131 void setCanHaveScrollbars(bool); 132 void setCanHaveScrollbars(bool);
132 133
133 Scrollbar* createScrollbar(ScrollbarOrientation); 134 Scrollbar* createScrollbar(ScrollbarOrientation);
134 135
135 void setContentsSize(const IntSize&); 136 void setContentsSize(const IntSize&);
136 137
138 void printLayoutTreeStats() const;
139 void countLayoutTreeStats(TreeStats&, const FrameView& frame) const;
140 void countLayoutTreeStats(TreeStats&, const LayoutObject& object) const;
141
137 void layout(); 142 void layout();
138 bool didFirstLayout() const; 143 bool didFirstLayout() const;
139 void scheduleRelayout(); 144 void scheduleRelayout();
140 void scheduleRelayoutOfSubtree(LayoutObject*); 145 void scheduleRelayoutOfSubtree(LayoutObject*);
141 bool layoutPending() const; 146 bool layoutPending() const;
142 bool isInPerformLayout() const; 147 bool isInPerformLayout() const;
143 148
144 void clearLayoutSubtreeRoot(const LayoutObject&); 149 void clearLayoutSubtreeRoot(const LayoutObject&);
145 void addOrthogonalWritingModeRoot(LayoutBox&); 150 void addOrthogonalWritingModeRoot(LayoutBox&);
146 void removeOrthogonalWritingModeRoot(LayoutBox&); 151 void removeOrthogonalWritingModeRoot(LayoutBox&);
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 frameViewBase.isFrameView()); 1271 frameViewBase.isFrameView());
1267 DEFINE_TYPE_CASTS(FrameView, 1272 DEFINE_TYPE_CASTS(FrameView,
1268 ScrollableArea, 1273 ScrollableArea,
1269 scrollableArea, 1274 scrollableArea,
1270 scrollableArea->isFrameView(), 1275 scrollableArea->isFrameView(),
1271 scrollableArea.isFrameView()); 1276 scrollableArea.isFrameView());
1272 1277
1273 } // namespace blink 1278 } // namespace blink
1274 1279
1275 #endif // FrameView_h 1280 #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