| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 IntRect RenderListBox::scrollableAreaBoundingBox() const | 824 IntRect RenderListBox::scrollableAreaBoundingBox() const |
| 825 { | 825 { |
| 826 return absoluteBoundingBoxRect(); | 826 return absoluteBoundingBoxRect(); |
| 827 } | 827 } |
| 828 | 828 |
| 829 PassRefPtr<Scrollbar> RenderListBox::createScrollbar() | 829 PassRefPtr<Scrollbar> RenderListBox::createScrollbar() |
| 830 { | 830 { |
| 831 RefPtr<Scrollbar> widget; | 831 RefPtr<Scrollbar> widget; |
| 832 bool hasCustomScrollbarStyle = style()->hasPseudoStyle(SCROLLBAR); | 832 bool hasCustomScrollbarStyle = style()->hasPseudoStyle(SCROLLBAR); |
| 833 if (hasCustomScrollbarStyle) | 833 if (hasCustomScrollbarStyle) |
| 834 widget = RenderScrollbar::createCustomScrollbar(this, VerticalScrollbar,
this); | 834 widget = RenderScrollbar::createCustomScrollbar(this, VerticalScrollbar,
this->node()); |
| 835 else { | 835 else { |
| 836 widget = Scrollbar::createNativeScrollbar(this, VerticalScrollbar, theme
()->scrollbarControlSizeForPart(ListboxPart)); | 836 widget = Scrollbar::createNativeScrollbar(this, VerticalScrollbar, theme
()->scrollbarControlSizeForPart(ListboxPart)); |
| 837 didAddVerticalScrollbar(widget.get()); | 837 didAddVerticalScrollbar(widget.get()); |
| 838 } | 838 } |
| 839 document()->view()->addChild(widget.get()); | 839 document()->view()->addChild(widget.get()); |
| 840 return widget.release(); | 840 return widget.release(); |
| 841 } | 841 } |
| 842 | 842 |
| 843 void RenderListBox::destroyScrollbar() | 843 void RenderListBox::destroyScrollbar() |
| 844 { | 844 { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 866 m_vBar->styleChanged(); | 866 m_vBar->styleChanged(); |
| 867 | 867 |
| 868 #if ENABLE(DASHBOARD_SUPPORT) | 868 #if ENABLE(DASHBOARD_SUPPORT) |
| 869 // Force an update since we know the scrollbars have changed things. | 869 // Force an update since we know the scrollbars have changed things. |
| 870 if (document()->hasDashboardRegions()) | 870 if (document()->hasDashboardRegions()) |
| 871 document()->setDashboardRegionsDirty(true); | 871 document()->setDashboardRegionsDirty(true); |
| 872 #endif | 872 #endif |
| 873 } | 873 } |
| 874 | 874 |
| 875 } // namespace WebCore | 875 } // namespace WebCore |
| OLD | NEW |