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

Side by Side Diff: Source/core/rendering/RenderTableSection.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderTableRow.cpp ('k') | Source/core/rendering/RenderTableSection.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) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@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) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 { 96 {
97 return hasCells() ? cells[cells.size() - 1] : 0; 97 return hasCells() ? cells[cells.size() - 1] : 0;
98 } 98 }
99 99
100 const RenderTableCell* primaryCell() const 100 const RenderTableCell* primaryCell() const
101 { 101 {
102 return hasCells() ? cells[cells.size() - 1] : 0; 102 return hasCells() ? cells[cells.size() - 1] : 0;
103 } 103 }
104 104
105 bool hasCells() const { return cells.size() > 0; } 105 bool hasCells() const { return cells.size() > 0; }
106
107 void reportMemoryUsage(MemoryObjectInfo*) const;
108 }; 106 };
109 107
110 typedef Vector<CellStruct> Row; 108 typedef Vector<CellStruct> Row;
111 109
112 struct RowStruct { 110 struct RowStruct {
113 RowStruct() 111 RowStruct()
114 : rowRenderer(0) 112 : rowRenderer(0)
115 , baseline() 113 , baseline()
116 { 114 {
117 } 115 }
118 116
119 void reportMemoryUsage(MemoryObjectInfo*) const;
120
121 Row row; 117 Row row;
122 RenderTableRow* rowRenderer; 118 RenderTableRow* rowRenderer;
123 LayoutUnit baseline; 119 LayoutUnit baseline;
124 Length logicalHeight; 120 Length logicalHeight;
125 }; 121 };
126 122
127 const BorderValue& borderAdjoiningTableStart() const 123 const BorderValue& borderAdjoiningTableStart() const
128 { 124 {
129 if (hasSameDirectionAs(table())) 125 if (hasSameDirectionAs(table()))
130 return style()->borderStart(); 126 return style()->borderStart();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 int distributeExtraLogicalHeightToRows(int extraLogicalHeight); 191 int distributeExtraLogicalHeightToRows(int extraLogicalHeight);
196 192
197 static RenderTableSection* createAnonymousWithParentRenderer(const RenderObj ect*); 193 static RenderTableSection* createAnonymousWithParentRenderer(const RenderObj ect*);
198 virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* pare nt) const OVERRIDE 194 virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* pare nt) const OVERRIDE
199 { 195 {
200 return createAnonymousWithParentRenderer(parent); 196 return createAnonymousWithParentRenderer(parent);
201 } 197 }
202 198
203 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 199 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
204 200
205 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
206
207 protected: 201 protected:
208 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 202 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
209 203
210 private: 204 private:
211 virtual RenderObjectChildList* virtualChildren() { return children(); } 205 virtual RenderObjectChildList* virtualChildren() { return children(); }
212 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); } 206 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); }
213 207
214 virtual const char* renderName() const { return (isAnonymous() || isPseudoEl ement()) ? "RenderTableSection (anonymous)" : "RenderTableSection"; } 208 virtual const char* renderName() const { return (isAnonymous() || isPseudoEl ement()) ? "RenderTableSection (anonymous)" : "RenderTableSection"; }
215 209
216 virtual bool isTableSection() const { return true; } 210 virtual bool isTableSection() const { return true; }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableSection()); 285 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableSection());
292 return static_cast<const RenderTableSection*>(object); 286 return static_cast<const RenderTableSection*>(object);
293 } 287 }
294 288
295 // This will catch anyone doing an unnecessary cast. 289 // This will catch anyone doing an unnecessary cast.
296 void toRenderTableSection(const RenderTableSection*); 290 void toRenderTableSection(const RenderTableSection*);
297 291
298 } // namespace WebCore 292 } // namespace WebCore
299 293
300 #endif // RenderTableSection_h 294 #endif // RenderTableSection_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableRow.cpp ('k') | Source/core/rendering/RenderTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698