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

Side by Side Diff: Source/core/rendering/RenderTableCol.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/RenderTableCell.h ('k') | Source/core/rendering/RenderTableRow.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 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); 96 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0);
97 97
98 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 98 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
99 99
100 RenderTable* table() const; 100 RenderTable* table() const;
101 101
102 RenderObjectChildList m_children; 102 RenderObjectChildList m_children;
103 unsigned m_span; 103 unsigned m_span;
104 }; 104 };
105 105
106 inline RenderTableCol* toRenderTableCol(RenderObject* object) 106 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol());
107 {
108 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderTableCol());
109 return static_cast<RenderTableCol*>(object);
110 }
111
112 inline const RenderTableCol* toRenderTableCol(const RenderObject* object)
113 {
114 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderTableCol());
115 return static_cast<const RenderTableCol*>(object);
116 }
117
118 // This will catch anyone doing an unnecessary cast.
119 void toRenderTableCol(const RenderTableCol*);
120 107
121 } 108 }
122 109
123 #endif 110 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableCell.h ('k') | Source/core/rendering/RenderTableRow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698