| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 m_indexOffset = 0; | 200 m_indexOffset = 0; |
| 201 } | 201 } |
| 202 } | 202 } |
| 203 | 203 |
| 204 if (m_scrollToRevealSelectionAfterLayout) { | 204 if (m_scrollToRevealSelectionAfterLayout) { |
| 205 LayoutStateDisabler layoutStateDisabler(*this); | 205 LayoutStateDisabler layoutStateDisabler(*this); |
| 206 scrollToRevealSelection(); | 206 scrollToRevealSelection(); |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 | 209 |
| 210 void RenderListBox::repaintTreeAfterLayout() | 210 void RenderListBox::repaintTreeAfterLayout(const RenderLayerModelObject& repaint
Container) |
| 211 { | 211 { |
| 212 repaintScrollbarIfNeeded(); | 212 repaintScrollbarIfNeeded(); |
| 213 RenderBox::repaintTreeAfterLayout(); | 213 RenderBox::repaintTreeAfterLayout(repaintContainer); |
| 214 } | 214 } |
| 215 | 215 |
| 216 void RenderListBox::scrollToRevealSelection() | 216 void RenderListBox::scrollToRevealSelection() |
| 217 { | 217 { |
| 218 HTMLSelectElement* select = selectElement(); | 218 HTMLSelectElement* select = selectElement(); |
| 219 | 219 |
| 220 m_scrollToRevealSelectionAfterLayout = false; | 220 m_scrollToRevealSelectionAfterLayout = false; |
| 221 | 221 |
| 222 int firstIndex = listIndexToRenderListBoxIndex(select->activeSelectionStartL
istIndex()); | 222 int firstIndex = listIndexToRenderListBoxIndex(select->activeSelectionStartL
istIndex()); |
| 223 int lastIndex = listIndexToRenderListBoxIndex(select->activeSelectionEndList
Index()); | 223 int lastIndex = listIndexToRenderListBoxIndex(select->activeSelectionEndList
Index()); |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 { | 1022 { |
| 1023 return itemBoundingBoxRectInternal(point, listIndexToRenderListBoxIndex(inde
x)); | 1023 return itemBoundingBoxRectInternal(point, listIndexToRenderListBoxIndex(inde
x)); |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 bool RenderListBox::scrollToRevealElementAtListIndex(int index) | 1026 bool RenderListBox::scrollToRevealElementAtListIndex(int index) |
| 1027 { | 1027 { |
| 1028 return scrollToRevealElementAtListIndexInternal(listIndexToRenderListBoxInde
x(index)); | 1028 return scrollToRevealElementAtListIndexInternal(listIndexToRenderListBoxInde
x(index)); |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 } // namespace WebCore | 1031 } // namespace WebCore |
| OLD | NEW |