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

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

Issue 332543002: Rename Repaint to Paint Invalidation Part 4 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 textRun.disableRoundingHacks(); 162 textRun.disableRoundingHacks();
163 float textWidth = itemFont.width(textRun); 163 float textWidth = itemFont.width(textRun);
164 width = max(width, textWidth); 164 width = max(width, textWidth);
165 } 165 }
166 } 166 }
167 m_optionsWidth = static_cast<int>(ceilf(width)); 167 m_optionsWidth = static_cast<int>(ceilf(width));
168 m_optionsChanged = false; 168 m_optionsChanged = false;
169 169
170 setHasVerticalScrollbar(true); 170 setHasVerticalScrollbar(true);
171 171
172 setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint(); 172 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
173 } 173 }
174 } 174 }
175 175
176 void RenderListBox::selectionChanged() 176 void RenderListBox::selectionChanged()
177 { 177 {
178 paintInvalidationForWholeRenderer(); 178 paintInvalidationForWholeRenderer();
179 if (!m_inAutoscroll) { 179 if (!m_inAutoscroll) {
180 if (m_optionsChanged || needsLayout()) 180 if (m_optionsChanged || needsLayout())
181 m_scrollToRevealSelectionAfterLayout = true; 181 m_scrollToRevealSelectionAfterLayout = true;
182 else 182 else
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerScrollableArea.cpp ('k') | Source/core/rendering/RenderListItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698