| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 { | 65 { |
| 66 ASSERT(isIntegerValue(RenderBlock::marginLeft())); | 66 ASSERT(isIntegerValue(RenderBlock::marginLeft())); |
| 67 return RenderBlock::marginLeft(); | 67 return RenderBlock::marginLeft(); |
| 68 } | 68 } |
| 69 virtual LayoutUnit marginRight() const override | 69 virtual LayoutUnit marginRight() const override |
| 70 { | 70 { |
| 71 ASSERT(isIntegerValue(RenderBlock::marginRight())); | 71 ASSERT(isIntegerValue(RenderBlock::marginRight())); |
| 72 return RenderBlock::marginRight(); | 72 return RenderBlock::marginRight(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectRenderScrollbarPart || RenderBlock::isOfType(type); } | 75 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectRenderScrollbarPart || RenderBlock::isOfType(type); } |
| 76 RenderObject* rendererOwningScrollbar() const; | 76 LayoutObject* rendererOwningScrollbar() const; |
| 77 | 77 |
| 78 protected: | 78 protected: |
| 79 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) o
verride; | 79 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) o
verride; |
| 80 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; | 80 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; |
| 81 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; | 81 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 RenderScrollbarPart(RenderScrollbar*, ScrollbarPart); | 84 RenderScrollbarPart(RenderScrollbar*, ScrollbarPart); |
| 85 | 85 |
| 86 virtual void computePreferredLogicalWidths() override; | 86 virtual void computePreferredLogicalWidths() override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 101 void layoutHorizontalPart(); | 101 void layoutHorizontalPart(); |
| 102 void layoutVerticalPart(); | 102 void layoutVerticalPart(); |
| 103 | 103 |
| 104 void computeScrollbarWidth(); | 104 void computeScrollbarWidth(); |
| 105 void computeScrollbarHeight(); | 105 void computeScrollbarHeight(); |
| 106 | 106 |
| 107 RenderScrollbar* m_scrollbar; | 107 RenderScrollbar* m_scrollbar; |
| 108 ScrollbarPart m_part; | 108 ScrollbarPart m_part; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderScrollbarPart, isRenderScrollbarPart()); | 111 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderScrollbarPart, isRenderScrollbarPart()); |
| 112 | 112 |
| 113 } // namespace blink | 113 } // namespace blink |
| 114 | 114 |
| 115 #endif // RenderScrollbarPart_h | 115 #endif // RenderScrollbarPart_h |
| OLD | NEW |