| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 void RenderListBox::selectionChanged() | 159 void RenderListBox::selectionChanged() |
| 160 { | 160 { |
| 161 repaint(); | 161 repaint(); |
| 162 if (!m_inAutoscroll) { | 162 if (!m_inAutoscroll) { |
| 163 if (m_optionsChanged || needsLayout()) | 163 if (m_optionsChanged || needsLayout()) |
| 164 m_scrollToRevealSelectionAfterLayout = true; | 164 m_scrollToRevealSelectionAfterLayout = true; |
| 165 else | 165 else |
| 166 scrollToRevealSelection(); | 166 scrollToRevealSelection(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 if (AXObjectCache* cache = document()->existingAXObjectCache()) | 169 if (AXObjectCache::accessibilityEnabled()) |
| 170 cache->selectedChildrenChanged(this); | 170 document()->axObjectCache()->selectedChildrenChanged(this); |
| 171 } | 171 } |
| 172 | 172 |
| 173 void RenderListBox::layout() | 173 void RenderListBox::layout() |
| 174 { | 174 { |
| 175 StackStats::LayoutCheckPoint layoutCheckPoint; | 175 StackStats::LayoutCheckPoint layoutCheckPoint; |
| 176 RenderBlock::layout(); | 176 RenderBlock::layout(); |
| 177 | 177 |
| 178 if (m_vBar) { | 178 if (m_vBar) { |
| 179 bool enabled = numVisibleItems() < numItems(); | 179 bool enabled = numVisibleItems() < numItems(); |
| 180 m_vBar->setEnabled(enabled); | 180 m_vBar->setEnabled(enabled); |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 m_vBar->styleChanged(); | 881 m_vBar->styleChanged(); |
| 882 | 882 |
| 883 // Force an update since we know the scrollbars have changed things. | 883 // Force an update since we know the scrollbars have changed things. |
| 884 #if ENABLE(DASHBOARD_SUPPORT) || ENABLE(DRAGGABLE_REGION) | 884 #if ENABLE(DASHBOARD_SUPPORT) || ENABLE(DRAGGABLE_REGION) |
| 885 if (document()->hasAnnotatedRegions()) | 885 if (document()->hasAnnotatedRegions()) |
| 886 document()->setAnnotatedRegionsDirty(true); | 886 document()->setAnnotatedRegionsDirty(true); |
| 887 #endif | 887 #endif |
| 888 } | 888 } |
| 889 | 889 |
| 890 } // namespace WebCore | 890 } // namespace WebCore |
| OLD | NEW |