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

Unified Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp

Issue 1424983002: Invalidate scrollbars when window activity changes if needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
index d97cfd6ca2e8502002fd9923cd507415c0f1458e..de7566b88376827d2a743b8f4fbf9d3fa88843a5 100644
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
@@ -505,6 +505,12 @@ bool Scrollbar::shouldParticipateInHitTesting()
return m_scrollableArea->scrollAnimator()->shouldScrollbarParticipateInHitTesting(this);
}
+void Scrollbar::windowActiveChanged()
+{
+ if (m_theme && m_theme->invalidateOnWindowActiveChange())
+ invalidate();
+}
+
bool Scrollbar::isWindowActive() const
{
return m_scrollableArea && m_scrollableArea->isActive();

Powered by Google App Engine
This is Rietveld 408576698