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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #define RenderMarquee_h | 45 #define RenderMarquee_h |
46 | 46 |
47 #include "core/html/HTMLMarqueeElement.h" | 47 #include "core/html/HTMLMarqueeElement.h" |
48 #include "core/rendering/RenderBlockFlow.h" | 48 #include "core/rendering/RenderBlockFlow.h" |
49 #include "core/rendering/style/RenderStyleConstants.h" | 49 #include "core/rendering/style/RenderStyleConstants.h" |
50 #include "platform/Length.h" | 50 #include "platform/Length.h" |
51 #include "platform/Timer.h" | 51 #include "platform/Timer.h" |
52 | 52 |
53 namespace WebCore { | 53 namespace WebCore { |
54 | 54 |
55 class RenderLayer; | |
56 | |
57 // This class handles the auto-scrolling for <marquee> | 55 // This class handles the auto-scrolling for <marquee> |
58 class RenderMarquee FINAL : public RenderBlockFlow { | 56 class RenderMarquee FINAL : public RenderBlockFlow { |
59 public: | 57 public: |
60 explicit RenderMarquee(HTMLMarqueeElement*); | 58 explicit RenderMarquee(HTMLMarqueeElement*); |
61 virtual ~RenderMarquee(); | 59 virtual ~RenderMarquee(); |
62 | 60 |
63 int speed() const { return m_speed; } | 61 int speed() const { return m_speed; } |
64 int marqueeSpeed() const; | 62 int marqueeSpeed() const; |
65 | 63 |
66 EMarqueeDirection reverseDirection() const { return static_cast<EMarqueeDire
ction>(-direction()); } | 64 EMarqueeDirection reverseDirection() const { return static_cast<EMarqueeDire
ction>(-direction()); } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 bool m_suspended : 1; | 100 bool m_suspended : 1; |
103 bool m_stopped : 1; | 101 bool m_stopped : 1; |
104 EMarqueeDirection m_direction : 4; | 102 EMarqueeDirection m_direction : 4; |
105 }; | 103 }; |
106 | 104 |
107 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMarquee, isMarquee()); | 105 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMarquee, isMarquee()); |
108 | 106 |
109 } // namespace WebCore | 107 } // namespace WebCore |
110 | 108 |
111 #endif // RenderMarquee_h | 109 #endif // RenderMarquee_h |
OLD | NEW |