Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: Source/WebCore/rendering/RenderListBox.cpp

Issue 10442005: Merge 116476 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderLayer.cpp ('k') | Source/WebCore/rendering/RenderMenuList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderLayer.cpp ('k') | Source/WebCore/rendering/RenderMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698