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

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

Issue 10871074: Merge 124556 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 4 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/RenderListBox.h ('k') | Source/WebCore/rendering/RenderMenuList.h » ('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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 m_optionsWidth = static_cast<int>(ceilf(width)); 140 m_optionsWidth = static_cast<int>(ceilf(width));
141 m_optionsChanged = false; 141 m_optionsChanged = false;
142 142
143 setHasVerticalScrollbar(true); 143 setHasVerticalScrollbar(true);
144 144
145 setNeedsLayoutAndPrefWidthsRecalc(); 145 setNeedsLayoutAndPrefWidthsRecalc();
146 } 146 }
147 } 147 }
148 148
149 bool RenderListBox::canBeReplacedWithInlineRunIn() const
150 {
151 return false;
152 }
153
149 void RenderListBox::selectionChanged() 154 void RenderListBox::selectionChanged()
150 { 155 {
151 repaint(); 156 repaint();
152 if (!m_inAutoscroll) { 157 if (!m_inAutoscroll) {
153 if (m_optionsChanged || needsLayout()) 158 if (m_optionsChanged || needsLayout())
154 m_scrollToRevealSelectionAfterLayout = true; 159 m_scrollToRevealSelectionAfterLayout = true;
155 else 160 else
156 scrollToRevealSelection(); 161 scrollToRevealSelection();
157 } 162 }
158 163
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 m_vBar->styleChanged(); 870 m_vBar->styleChanged();
866 871
867 #if ENABLE(DASHBOARD_SUPPORT) 872 #if ENABLE(DASHBOARD_SUPPORT)
868 // Force an update since we know the scrollbars have changed things. 873 // Force an update since we know the scrollbars have changed things.
869 if (document()->hasDashboardRegions()) 874 if (document()->hasDashboardRegions())
870 document()->setDashboardRegionsDirty(true); 875 document()->setDashboardRegionsDirty(true);
871 #endif 876 #endif
872 } 877 }
873 878
874 } // namespace WebCore 879 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderListBox.h ('k') | Source/WebCore/rendering/RenderMenuList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698