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

Unified Diff: Source/core/rendering/RenderListBox.cpp

Issue 264963004: Mark when we may have been invalidated to early out on repaintTreeAfterLayout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderListBox.cpp
diff --git a/Source/core/rendering/RenderListBox.cpp b/Source/core/rendering/RenderListBox.cpp
index a9eb086d9a7655c9e43a7d9d2f4cbdfd5c8c68b0..8635b7ef9a087d9682568b10bb65a9edbcdbca69 100644
--- a/Source/core/rendering/RenderListBox.cpp
+++ b/Source/core/rendering/RenderListBox.cpp
@@ -192,6 +192,8 @@ void RenderListBox::layout()
RenderBlockFlow::layout();
if (m_vBar) {
+ setMayNeedInvalidation(true);
+
bool enabled = numVisibleItems() < numItems();
m_vBar->setEnabled(enabled);
m_vBar->setProportion(numVisibleItems(), numItems());
@@ -202,6 +204,8 @@ void RenderListBox::layout()
}
if (m_scrollToRevealSelectionAfterLayout) {
+ setMayNeedInvalidation(true);
+
LayoutStateDisabler layoutStateDisabler(*this);
scrollToRevealSelection();
}

Powered by Google App Engine
This is Rietveld 408576698