Commit 9249c3be authored by sigbjornf@opera.com's avatar sigbjornf@opera.com

Oilpan: fix build after r183816

R=haraken
BUG=
NOTRY=true

Review URL: https://codereview.chromium.org/661793002

git-svn-id: svn://svn.chromium.org/blink/trunk@183825 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 2cfc8956
...@@ -2389,14 +2389,13 @@ Color FrameView::documentBackgroundColor() const ...@@ -2389,14 +2389,13 @@ Color FrameView::documentBackgroundColor() const
bool FrameView::hasCustomScrollbars() const bool FrameView::hasCustomScrollbars() const
{ {
const ChildrenWidgetSet* viewChildren = children(); const ChildrenWidgetSet* viewChildren = children();
for (const auto& child : *viewChildren) { for (const RefPtrWillBeMember<Widget>& child : *viewChildren) {
Widget* widget = child.get(); Widget* widget = child.get();
if (widget->isFrameView()) { if (widget->isFrameView()) {
if (toFrameView(widget)->hasCustomScrollbars()) if (toFrameView(widget)->hasCustomScrollbars())
return true; return true;
} else if (widget->isScrollbar()) { } else if (widget->isScrollbar()) {
Scrollbar* scrollbar = static_cast<Scrollbar*>(widget); if (toScrollbar(widget)->isCustomScrollbar())
if (scrollbar->isCustomScrollbar())
return true; return true;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment