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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 702913002: Updating custom scrollbar style (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments by rune Created 6 years, 1 month 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
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 63c7faa24d53d41603d8cea36476da2ffbb9c253..22bd64ad5b229c21c8e7c34649234cae15480ebb 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -323,6 +323,24 @@ void FrameView::detachCustomScrollbars()
}
}
+void FrameView::recalculateCustomScrollbarStyle()
+{
+ bool didStyleChange = false;
+ if (m_horizontalScrollbar && m_horizontalScrollbar->isCustomScrollbar()) {
+ m_horizontalScrollbar->styleChanged();
+ didStyleChange = true;
+ }
+ if (m_verticalScrollbar && m_verticalScrollbar->isCustomScrollbar()) {
+ m_verticalScrollbar->styleChanged();
+ didStyleChange = true;
+ }
+ if (didStyleChange) {
+ updateScrollbarGeometry();
+ updateScrollCorner();
+ positionScrollbarLayers();
+ }
+}
+
void FrameView::recalculateScrollbarOverlayStyle()
{
ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle();
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698