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

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

Issue 774953003: CustomScrollbar Style not updated for IFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments Created 6 years 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 | « LayoutTests/scrollbars/custom-scrollbar-for-iframe-changing-dynamically-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderPart.cpp
diff --git a/Source/core/rendering/RenderPart.cpp b/Source/core/rendering/RenderPart.cpp
index c6557fc331bd6cff4595b624ce20a61b19135031..1b041abc1567f654fcf271b3df19f7361fa45616 100644
--- a/Source/core/rendering/RenderPart.cpp
+++ b/Source/core/rendering/RenderPart.cpp
@@ -209,6 +209,10 @@ void RenderPart::styleDidChange(StyleDifference diff, const RenderStyle* oldStyl
if (!widget)
return;
+ // If the iframe has custom scrollbars, recalculate their style.
+ if (widget && widget->isFrameView())
+ toFrameView(widget)->recalculateCustomScrollbarStyle();
+
if (style()->visibility() != VISIBLE) {
widget->hide();
} else {
« no previous file with comments | « LayoutTests/scrollbars/custom-scrollbar-for-iframe-changing-dynamically-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698