Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index 133cc3bf7cf29a66193dbab678628404da5266f1..146a5adcc6321f4e45f6827630502395771054a9 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -2389,14 +2389,13 @@ Color FrameView::documentBackgroundColor() const |
bool FrameView::hasCustomScrollbars() const |
{ |
const ChildrenWidgetSet* viewChildren = children(); |
- for (const auto& child : *viewChildren) { |
+ for (const RefPtrWillBeMember<Widget>& child : *viewChildren) { |
Widget* widget = child.get(); |
if (widget->isFrameView()) { |
if (toFrameView(widget)->hasCustomScrollbars()) |
return true; |
} else if (widget->isScrollbar()) { |
- Scrollbar* scrollbar = static_cast<Scrollbar*>(widget); |
- if (scrollbar->isCustomScrollbar()) |
+ if (toScrollbar(widget)->isCustomScrollbar()) |
return true; |
} |
} |