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

Side by Side Diff: Source/core/rendering/RenderTableRow.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/RenderTableCol.h ('k') | Source/core/rendering/RenderTableSection.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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual void paint(PaintInfo&, const LayoutPoint&); 108 virtual void paint(PaintInfo&, const LayoutPoint&);
109 109
110 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); 110 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0);
111 111
112 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 112 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
113 113
114 RenderObjectChildList m_children; 114 RenderObjectChildList m_children;
115 unsigned m_rowIndex : 31; 115 unsigned m_rowIndex : 31;
116 }; 116 };
117 117
118 inline RenderTableRow* toRenderTableRow(RenderObject* object) 118 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableRow, isTableRow());
119 {
120 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableRow());
121 return static_cast<RenderTableRow*>(object);
122 }
123
124 inline const RenderTableRow* toRenderTableRow(const RenderObject* object)
125 {
126 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableRow());
127 return static_cast<const RenderTableRow*>(object);
128 }
129
130 // This will catch anyone doing an unnecessary cast.
131 void toRenderTableRow(const RenderTableRow*);
132 119
133 } // namespace WebCore 120 } // namespace WebCore
134 121
135 #endif // RenderTableRow_h 122 #endif // RenderTableRow_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableCol.h ('k') | Source/core/rendering/RenderTableSection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698