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

Side by Side Diff: Source/core/rendering/RenderMarquee.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/RenderListMarker.h ('k') | Source/core/rendering/RenderMedia.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) 2003 Apple Computer, Inc. 2 * Copyright (C) 2003 Apple Computer, Inc.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int m_start; 98 int m_start;
99 int m_end; 99 int m_end;
100 int m_speed; 100 int m_speed;
101 Length m_height; 101 Length m_height;
102 bool m_reset: 1; 102 bool m_reset: 1;
103 bool m_suspended : 1; 103 bool m_suspended : 1;
104 bool m_stopped : 1; 104 bool m_stopped : 1;
105 EMarqueeDirection m_direction : 4; 105 EMarqueeDirection m_direction : 4;
106 }; 106 };
107 107
108 inline RenderMarquee* toRenderMarquee(RenderObject* renderer) 108 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMarquee, isMarquee());
109 {
110 ASSERT_WITH_SECURITY_IMPLICATION(!renderer || renderer->isMarquee());
111 return static_cast<RenderMarquee*>(renderer);
112 }
113
114 inline const RenderMarquee* toRenderMarquee(const RenderObject* renderer)
115 {
116 ASSERT_WITH_SECURITY_IMPLICATION(!renderer || renderer->isMarquee());
117 return static_cast<const RenderMarquee*>(renderer);
118 }
119
120 // Catch unneeded cast.
121 void toRenderMarquee(const RenderMarquee*);
122 109
123 } // namespace WebCore 110 } // namespace WebCore
124 111
125 #endif // RenderMarquee_h 112 #endif // RenderMarquee_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListMarker.h ('k') | Source/core/rendering/RenderMedia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698