OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 27 matching lines...) Expand all Loading... |
38 static RenderScrollbarPart* createAnonymous(Document*, RenderScrollbar* = 0,
ScrollbarPart = NoPart); | 38 static RenderScrollbarPart* createAnonymous(Document*, RenderScrollbar* = 0,
ScrollbarPart = NoPart); |
39 | 39 |
40 virtual ~RenderScrollbarPart(); | 40 virtual ~RenderScrollbarPart(); |
41 | 41 |
42 virtual const char* renderName() const OVERRIDE { return "RenderScrollbarPar
t"; } | 42 virtual const char* renderName() const OVERRIDE { return "RenderScrollbarPar
t"; } |
43 | 43 |
44 virtual LayerType layerTypeRequired() const OVERRIDE { return NoLayer; } | 44 virtual LayerType layerTypeRequired() const OVERRIDE { return NoLayer; } |
45 | 45 |
46 virtual void layout() OVERRIDE; | 46 virtual void layout() OVERRIDE; |
47 | 47 |
48 void paintIntoRect(GraphicsContext*, const LayoutPoint&, const LayoutRect&); | |
49 | |
50 // Scrollbar parts needs to be rendered at device pixel boundaries. | 48 // Scrollbar parts needs to be rendered at device pixel boundaries. |
51 virtual LayoutUnit marginTop() const OVERRIDE { ASSERT(isIntegerValue(m_marg
inBox.top())); return m_marginBox.top(); } | 49 virtual LayoutUnit marginTop() const OVERRIDE { ASSERT(isIntegerValue(m_marg
inBox.top())); return m_marginBox.top(); } |
52 virtual LayoutUnit marginBottom() const OVERRIDE { ASSERT(isIntegerValue(m_m
arginBox.bottom())); return m_marginBox.bottom(); } | 50 virtual LayoutUnit marginBottom() const OVERRIDE { ASSERT(isIntegerValue(m_m
arginBox.bottom())); return m_marginBox.bottom(); } |
53 virtual LayoutUnit marginLeft() const OVERRIDE { ASSERT(isIntegerValue(m_mar
ginBox.left())); return m_marginBox.left(); } | 51 virtual LayoutUnit marginLeft() const OVERRIDE { ASSERT(isIntegerValue(m_mar
ginBox.left())); return m_marginBox.left(); } |
54 virtual LayoutUnit marginRight() const OVERRIDE { ASSERT(isIntegerValue(m_ma
rginBox.right())); return m_marginBox.right(); } | 52 virtual LayoutUnit marginRight() const OVERRIDE { ASSERT(isIntegerValue(m_ma
rginBox.right())); return m_marginBox.right(); } |
55 | 53 |
56 virtual bool isRenderScrollbarPart() const OVERRIDE { return true; } | 54 virtual bool isRenderScrollbarPart() const OVERRIDE { return true; } |
57 RenderObject* rendererOwningScrollbar() const; | 55 RenderObject* rendererOwningScrollbar() const; |
58 | 56 |
59 protected: | 57 protected: |
(...skipping 27 matching lines...) Expand all Loading... |
87 | 85 |
88 RenderScrollbar* m_scrollbar; | 86 RenderScrollbar* m_scrollbar; |
89 ScrollbarPart m_part; | 87 ScrollbarPart m_part; |
90 }; | 88 }; |
91 | 89 |
92 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderScrollbarPart, isRenderScrollbarPart()); | 90 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderScrollbarPart, isRenderScrollbarPart()); |
93 | 91 |
94 } // namespace blink | 92 } // namespace blink |
95 | 93 |
96 #endif // RenderScrollbarPart_h | 94 #endif // RenderScrollbarPart_h |
OLD | NEW |