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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |