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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 } | 141 } |
142 m_optionsWidth = static_cast<int>(ceilf(width)); | 142 m_optionsWidth = static_cast<int>(ceilf(width)); |
143 m_optionsChanged = false; | 143 m_optionsChanged = false; |
144 | 144 |
145 setHasVerticalScrollbar(true); | 145 setHasVerticalScrollbar(true); |
146 | 146 |
147 setNeedsLayoutAndPrefWidthsRecalc(); | 147 setNeedsLayoutAndPrefWidthsRecalc(); |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 bool RenderListBox::canBeReplacedWithInlineRunIn() const | |
152 { | |
153 return false; | |
154 } | |
155 | |
156 void RenderListBox::selectionChanged() | 151 void RenderListBox::selectionChanged() |
157 { | 152 { |
158 repaint(); | 153 repaint(); |
159 if (!m_inAutoscroll) { | 154 if (!m_inAutoscroll) { |
160 if (m_optionsChanged || needsLayout()) | 155 if (m_optionsChanged || needsLayout()) |
161 m_scrollToRevealSelectionAfterLayout = true; | 156 m_scrollToRevealSelectionAfterLayout = true; |
162 else | 157 else |
163 scrollToRevealSelection(); | 158 scrollToRevealSelection(); |
164 } | 159 } |
165 | 160 |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 | 923 |
929 if (m_vBar) | 924 if (m_vBar) |
930 m_vBar->styleChanged(); | 925 m_vBar->styleChanged(); |
931 | 926 |
932 // Force an update since we know the scrollbars have changed things. | 927 // Force an update since we know the scrollbars have changed things. |
933 if (document().hasAnnotatedRegions()) | 928 if (document().hasAnnotatedRegions()) |
934 document().setAnnotatedRegionsDirty(true); | 929 document().setAnnotatedRegionsDirty(true); |
935 } | 930 } |
936 | 931 |
937 } // namespace WebCore | 932 } // namespace WebCore |
OLD | NEW |