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

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

Issue 33983003: Introduce DEFINE_RENDER_OBJECT_TYPE_CASTS to replace manual toRenderFoo, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « Source/core/rendering/RenderTableRow.h ('k') | Source/core/rendering/RenderText.h » ('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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 HashSet<RenderTableCell*> m_overflowingCells; 301 HashSet<RenderTableCell*> m_overflowingCells;
302 bool m_forceSlowPaintPathWithOverflowingCell; 302 bool m_forceSlowPaintPathWithOverflowingCell;
303 303
304 bool m_hasMultipleCellLevels; 304 bool m_hasMultipleCellLevels;
305 305
306 // This map holds the collapsed border values for cells with collapsed borde rs. 306 // This map holds the collapsed border values for cells with collapsed borde rs.
307 // It is held at RenderTableSection level to spare memory consumption by tab le cells. 307 // It is held at RenderTableSection level to spare memory consumption by tab le cells.
308 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue > m_cellsCol lapsedBorders; 308 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue > m_cellsCol lapsedBorders;
309 }; 309 };
310 310
311 inline RenderTableSection* toRenderTableSection(RenderObject* object) 311 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableSection, isTableSection());
312 {
313 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableSection());
314 return static_cast<RenderTableSection*>(object);
315 }
316
317 inline const RenderTableSection* toRenderTableSection(const RenderObject* object )
318 {
319 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableSection());
320 return static_cast<const RenderTableSection*>(object);
321 }
322
323 // This will catch anyone doing an unnecessary cast.
324 void toRenderTableSection(const RenderTableSection*);
325 312
326 } // namespace WebCore 313 } // namespace WebCore
327 314
328 #endif // RenderTableSection_h 315 #endif // RenderTableSection_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableRow.h ('k') | Source/core/rendering/RenderText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698