OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 21 matching lines...) Expand all Loading... |
32 class RenderSlider : public RenderBlock { | 32 class RenderSlider : public RenderBlock { |
33 public: | 33 public: |
34 RenderSlider(HTMLInputElement*); | 34 RenderSlider(HTMLInputElement*); |
35 virtual ~RenderSlider(); | 35 virtual ~RenderSlider(); |
36 | 36 |
37 bool inDragMode() const; | 37 bool inDragMode() const; |
38 | 38 |
39 private: | 39 private: |
40 virtual const char* renderName() const { return "RenderSlider"; } | 40 virtual const char* renderName() const { return "RenderSlider"; } |
41 virtual bool isSlider() const { return true; } | 41 virtual bool isSlider() const { return true; } |
| 42 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE; |
42 | 43 |
43 virtual LayoutUnit baselinePosition(FontBaseline, bool firstLine, LineDi
rectionMode, LinePositionMode = PositionOnContainingLine) const; | 44 virtual LayoutUnit baselinePosition(FontBaseline, bool firstLine, LineDi
rectionMode, LinePositionMode = PositionOnContainingLine) const; |
44 virtual void computePreferredLogicalWidths(); | 45 virtual void computePreferredLogicalWidths(); |
45 virtual bool requiresForcedStyleRecalcPropagation() const { return true;
} | 46 virtual bool requiresForcedStyleRecalcPropagation() const { return true;
} |
46 virtual void layout(); | 47 virtual void layout(); |
47 }; | 48 }; |
48 | 49 |
49 inline RenderSlider* toRenderSlider(RenderObject* object) | 50 inline RenderSlider* toRenderSlider(RenderObject* object) |
50 { | 51 { |
51 ASSERT(!object || object->isSlider()); | 52 ASSERT(!object || object->isSlider()); |
52 return static_cast<RenderSlider*>(object); | 53 return static_cast<RenderSlider*>(object); |
53 } | 54 } |
54 | 55 |
55 // This will catch anyone doing an unnecessary cast. | 56 // This will catch anyone doing an unnecessary cast. |
56 void toRenderSlider(const RenderSlider*); | 57 void toRenderSlider(const RenderSlider*); |
57 | 58 |
58 } // namespace WebCore | 59 } // namespace WebCore |
59 | 60 |
60 #endif // RenderSlider_h | 61 #endif // RenderSlider_h |
OLD | NEW |