| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "core/rendering/RenderScrollbar.h" | 27 #include "core/rendering/RenderScrollbar.h" |
| 28 | 28 |
| 29 #include "core/css/resolver/StyleResolver.h" | 29 #include "core/css/resolver/StyleResolver.h" |
| 30 #include "core/page/Frame.h" | 30 #include "core/page/Frame.h" |
| 31 #include "core/page/FrameView.h" | 31 #include "core/page/FrameView.h" |
| 32 #include "core/rendering/RenderPart.h" | 32 #include "core/rendering/RenderPart.h" |
| 33 #include "core/rendering/RenderScrollbarPart.h" | 33 #include "core/rendering/RenderScrollbarPart.h" |
| 34 #include "core/rendering/RenderScrollbarTheme.h" | 34 #include "core/rendering/RenderScrollbarTheme.h" |
| 35 #include "core/rendering/style/StyleInheritedData.h" | |
| 36 | 35 |
| 37 namespace WebCore { | 36 namespace WebCore { |
| 38 | 37 |
| 39 PassRefPtr<Scrollbar> RenderScrollbar::createCustomScrollbar(ScrollableArea* scr
ollableArea, ScrollbarOrientation orientation, Node* ownerNode, Frame* owningFra
me) | 38 PassRefPtr<Scrollbar> RenderScrollbar::createCustomScrollbar(ScrollableArea* scr
ollableArea, ScrollbarOrientation orientation, Node* ownerNode, Frame* owningFra
me) |
| 40 { | 39 { |
| 41 return adoptRef(new RenderScrollbar(scrollableArea, orientation, ownerNode,
owningFrame)); | 40 return adoptRef(new RenderScrollbar(scrollableArea, orientation, ownerNode,
owningFrame)); |
| 42 } | 41 } |
| 43 | 42 |
| 44 RenderScrollbar::RenderScrollbar(ScrollableArea* scrollableArea, ScrollbarOrient
ation orientation, Node* ownerNode, Frame* owningFrame) | 43 RenderScrollbar::RenderScrollbar(ScrollableArea* scrollableArea, ScrollbarOrient
ation orientation, Node* ownerNode, Frame* owningFrame) |
| 45 : Scrollbar(scrollableArea, orientation, RegularScrollbar, RenderScrollbarTh
eme::renderScrollbarTheme()) | 44 : Scrollbar(scrollableArea, orientation, RegularScrollbar, RenderScrollbarTh
eme::renderScrollbarTheme()) |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 int RenderScrollbar::minimumThumbLength() | 350 int RenderScrollbar::minimumThumbLength() |
| 352 { | 351 { |
| 353 RenderScrollbarPart* partRenderer = m_parts.get(ThumbPart); | 352 RenderScrollbarPart* partRenderer = m_parts.get(ThumbPart); |
| 354 if (!partRenderer) | 353 if (!partRenderer) |
| 355 return 0; | 354 return 0; |
| 356 partRenderer->layout(); | 355 partRenderer->layout(); |
| 357 return orientation() == HorizontalScrollbar ? partRenderer->width() : partRe
nderer->height(); | 356 return orientation() == HorizontalScrollbar ? partRenderer->width() : partRe
nderer->height(); |
| 358 } | 357 } |
| 359 | 358 |
| 360 } | 359 } |
| OLD | NEW |