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

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

Issue 8989014: Revert 99212 - Stop abusing RenderTableSection::needsRecalcCells logic (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 9 years 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) 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 { 119 {
120 if (m_needsCellRecalc) 120 if (m_needsCellRecalc)
121 recalcCells(); 121 recalcCells();
122 } 122 }
123 123
124 bool needsCellRecalc() const { return m_needsCellRecalc; } 124 bool needsCellRecalc() const { return m_needsCellRecalc; }
125 void setNeedsCellRecalc(); 125 void setNeedsCellRecalc();
126 126
127 LayoutUnit getBaseline(unsigned row) { return m_grid[row].baseline; } 127 LayoutUnit getBaseline(unsigned row) { return m_grid[row].baseline; }
128 128
129 void rowLogicalHeightChanged(unsigned rowIndex);
130
131 unsigned rowIndexForRenderer(const RenderTableRow*) const;
132
133 protected: 129 protected:
134 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 130 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
135 131
136 private: 132 private:
137 virtual RenderObjectChildList* virtualChildren() { return children(); } 133 virtual RenderObjectChildList* virtualChildren() { return children(); }
138 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); } 134 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); }
139 135
140 virtual const char* renderName() const { return isAnonymous() ? "RenderTable Section (anonymous)" : "RenderTableSection"; } 136 virtual const char* renderName() const { return isAnonymous() ? "RenderTable Section (anonymous)" : "RenderTableSection"; }
141 137
142 virtual bool isTableSection() const { return true; } 138 virtual bool isTableSection() const { return true; }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 ASSERT(!object || object->isTableSection()); 191 ASSERT(!object || object->isTableSection());
196 return static_cast<const RenderTableSection*>(object); 192 return static_cast<const RenderTableSection*>(object);
197 } 193 }
198 194
199 // This will catch anyone doing an unnecessary cast. 195 // This will catch anyone doing an unnecessary cast.
200 void toRenderTableSection(const RenderTableSection*); 196 void toRenderTableSection(const RenderTableSection*);
201 197
202 } // namespace WebCore 198 } // namespace WebCore
203 199
204 #endif // RenderTableSection_h 200 #endif // RenderTableSection_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderTableRow.cpp ('k') | Source/WebCore/rendering/RenderTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698