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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Scrollbar parts needs to be rendered at device pixel boundaries. | 48 // Scrollbar parts needs to be rendered at device pixel boundaries. |
49 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(); } |
50 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(); } |
51 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(); } |
52 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(); } |
53 | 53 |
54 virtual bool isRenderScrollbarPart() const override { return true; } | 54 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectRenderScrollbarPart || RenderBlock::isOfType(type); } |
55 RenderObject* rendererOwningScrollbar() const; | 55 RenderObject* rendererOwningScrollbar() const; |
56 | 56 |
57 protected: | 57 protected: |
58 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) o
verride; | 58 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) o
verride; |
59 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; | 59 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; |
60 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; | 60 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; |
61 | 61 |
62 private: | 62 private: |
63 RenderScrollbarPart(RenderScrollbar*, ScrollbarPart); | 63 RenderScrollbarPart(RenderScrollbar*, ScrollbarPart); |
64 | 64 |
(...skipping 20 matching lines...) Expand all Loading... |
85 | 85 |
86 RenderScrollbar* m_scrollbar; | 86 RenderScrollbar* m_scrollbar; |
87 ScrollbarPart m_part; | 87 ScrollbarPart m_part; |
88 }; | 88 }; |
89 | 89 |
90 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderScrollbarPart, isRenderScrollbarPart()); | 90 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderScrollbarPart, isRenderScrollbarPart()); |
91 | 91 |
92 } // namespace blink | 92 } // namespace blink |
93 | 93 |
94 #endif // RenderScrollbarPart_h | 94 #endif // RenderScrollbarPart_h |
OLD | NEW |