| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |