| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 int speed() const { return m_speed; } | 61 int speed() const { return m_speed; } |
| 62 int marqueeSpeed() const; | 62 int marqueeSpeed() const; |
| 63 | 63 |
| 64 EMarqueeDirection reverseDirection() const { return static_cast<EMarqueeDire
ction>(-direction()); } | 64 EMarqueeDirection reverseDirection() const { return static_cast<EMarqueeDire
ction>(-direction()); } |
| 65 EMarqueeDirection direction() const; | 65 EMarqueeDirection direction() const; |
| 66 | 66 |
| 67 bool isHorizontal() const; | 67 bool isHorizontal() const; |
| 68 | 68 |
| 69 int computePosition(EMarqueeDirection, bool stopAtClientEdge); | 69 int computePosition(EMarqueeDirection, bool stopAtClientEdge); |
| 70 | 70 |
| 71 void setEnd(int end) { m_end = end; } | |
| 72 | |
| 73 void start(); | 71 void start(); |
| 74 void suspend(); | 72 void suspend(); |
| 75 void stop(); | 73 void stop(); |
| 76 | 74 |
| 77 // FIXME: This function should be private and called at layout time. | 75 // FIXME: This function should be private and called at layout time. |
| 78 // However <marquee> tests are very timing dependent so we need to keep the
existing timing. | 76 // However <marquee> tests are very timing dependent so we need to keep the
existing timing. |
| 79 void updateMarqueePosition(); | 77 void updateMarqueePosition(); |
| 80 | 78 |
| 81 void timerFired(); | 79 void timerFired(); |
| 82 | 80 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 100 bool m_suspended : 1; | 98 bool m_suspended : 1; |
| 101 bool m_stopped : 1; | 99 bool m_stopped : 1; |
| 102 EMarqueeDirection m_direction : 4; | 100 EMarqueeDirection m_direction : 4; |
| 103 }; | 101 }; |
| 104 | 102 |
| 105 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMarquee, isMarquee()); | 103 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMarquee, isMarquee()); |
| 106 | 104 |
| 107 } // namespace blink | 105 } // namespace blink |
| 108 | 106 |
| 109 #endif // RenderMarquee_h | 107 #endif // RenderMarquee_h |
| OLD | NEW |