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

Unified Diff: Source/core/layout/LayoutBox.cpp

Issue 1310603003: Recalc custom scrollbar style. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBox.cpp
diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp
index aff8b7f4339afcf14c19215ae9c50f6b2c768c16..4db3b1211060bcd2331339ed0ae4bfcf8dbd22dc 100644
--- a/Source/core/layout/LayoutBox.cpp
+++ b/Source/core/layout/LayoutBox.cpp
@@ -235,6 +235,14 @@ void LayoutBox::styleDidChange(StyleDifference diff, const ComputedStyle* oldSty
if (isDocumentElement() || isBody()) {
document().view()->recalculateScrollbarOverlayStyle();
document().view()->recalculateCustomScrollbarStyle();
+ if (LayoutView* layoutView = view()) {
+ if (DeprecatedPaintLayerScrollableArea* scrollableArea = layoutView->scrollableArea()) {
+ if (scrollableArea->horizontalScrollbar() && scrollableArea->horizontalScrollbar()->isCustomScrollbar())
+ scrollableArea->horizontalScrollbar()->styleChanged();
+ if (scrollableArea->verticalScrollbar() && scrollableArea->verticalScrollbar()->isCustomScrollbar())
+ scrollableArea->verticalScrollbar()->styleChanged();
+ }
+ }
}
updateShapeOutsideInfoAfterStyleChange(*style(), oldStyle);
updateGridPositionAfterStyleChange(oldStyle);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698