| 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 15 matching lines...) Expand all Loading... |
| 26 #ifndef RenderScrollbarPart_h | 26 #ifndef RenderScrollbarPart_h |
| 27 #define RenderScrollbarPart_h | 27 #define RenderScrollbarPart_h |
| 28 | 28 |
| 29 #include "RenderBlock.h" | 29 #include "RenderBlock.h" |
| 30 #include "ScrollTypes.h" | 30 #include "ScrollTypes.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 class RenderScrollbar; | 34 class RenderScrollbar; |
| 35 | 35 |
| 36 class RenderScrollbarPart : public RenderBlock { | 36 class RenderScrollbarPart FINAL : public RenderBlock { |
| 37 public: | 37 public: |
| 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 { return "RenderScrollbarPart"; } | 42 virtual const char* renderName() const { return "RenderScrollbarPart"; } |
| 43 | 43 |
| 44 virtual bool requiresLayer() const { return false; } | 44 virtual bool requiresLayer() const { return false; } |
| 45 | 45 |
| 46 virtual void layout(); | 46 virtual void layout(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderScrollbarPart())
; | 87 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderScrollbarPart())
; |
| 88 return static_cast<const RenderScrollbarPart*>(object); | 88 return static_cast<const RenderScrollbarPart*>(object); |
| 89 } | 89 } |
| 90 | 90 |
| 91 // This will catch anyone doing an unnecessary cast. | 91 // This will catch anyone doing an unnecessary cast. |
| 92 void toRenderScrollbarPart(const RenderScrollbarPart*); | 92 void toRenderScrollbarPart(const RenderScrollbarPart*); |
| 93 | 93 |
| 94 } // namespace WebCore | 94 } // namespace WebCore |
| 95 | 95 |
| 96 #endif // RenderScrollbarPart_h | 96 #endif // RenderScrollbarPart_h |
| OLD | NEW |