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

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

Issue 12703031: Revert 146726 "AXObjectCache gets recreated during document tear..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 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/RenderBlock.cpp ('k') | Source/WebCore/rendering/RenderMenuList.cpp » ('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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderBlock.cpp ('k') | Source/WebCore/rendering/RenderMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698