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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutFrameSet.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> 3 * (C) 2000 Simon Hausmann <hausmann@kde.org>
4 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 Vector<bool> m_allowBorder; 101 Vector<bool> m_allowBorder;
102 int m_splitBeingResized; 102 int m_splitBeingResized;
103 int m_splitResizeOffset; 103 int m_splitResizeOffset;
104 }; 104 };
105 105
106 const GridAxis& rows() const { return m_rows; } 106 const GridAxis& rows() const { return m_rows; }
107 const GridAxis& columns() const { return m_cols; } 107 const GridAxis& columns() const { return m_cols; }
108 108
109 const char* name() const override { return "LayoutFrameSet"; } 109 const char* name() const override { return "LayoutFrameSet"; }
110 110
111 char objectSize() const override { return sizeof(this); }
112
111 private: 113 private:
112 static const int noSplit = -1; 114 static const int noSplit = -1;
113 115
114 LayoutObjectChildList* virtualChildren() override { return children(); } 116 LayoutObjectChildList* virtualChildren() override { return children(); }
115 const LayoutObjectChildList* virtualChildren() const override { 117 const LayoutObjectChildList* virtualChildren() const override {
116 return children(); 118 return children();
117 } 119 }
118 120
119 bool isOfType(LayoutObjectType type) const override { 121 bool isOfType(LayoutObjectType type) const override {
120 return type == LayoutObjectFrameSet || LayoutBox::isOfType(type); 122 return type == LayoutObjectFrameSet || LayoutBox::isOfType(type);
(...skipping 29 matching lines...) Expand all
150 152
151 bool m_isResizing; 153 bool m_isResizing;
152 bool m_isChildResizing; 154 bool m_isChildResizing;
153 }; 155 };
154 156
155 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFrameSet, isFrameSet()); 157 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFrameSet, isFrameSet());
156 158
157 } // namespace blink 159 } // namespace blink
158 160
159 #endif // LayoutFrameSet_h 161 #endif // LayoutFrameSet_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFrame.h ('k') | third_party/WebKit/Source/core/layout/LayoutFullScreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698