OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 } | 330 } |
331 if (didStyleChange) { | 331 if (didStyleChange) { |
332 updateScrollbarGeometry(); | 332 updateScrollbarGeometry(); |
333 updateScrollCorner(); | 333 updateScrollCorner(); |
334 positionScrollbarLayers(); | 334 positionScrollbarLayers(); |
335 } | 335 } |
336 } | 336 } |
337 | 337 |
338 void FrameView::invalidateAllCustomScrollbarsOnActiveChanged() | 338 void FrameView::invalidateAllCustomScrollbarsOnActiveChanged() |
339 { | 339 { |
340 bool usesWindowInactiveSelector = m_frame->document()->styleEngine()->usesWi
ndowInactiveSelector(); | 340 bool usesWindowInactiveSelector = m_frame->document()->styleEngine().usesWin
dowInactiveSelector(); |
341 | 341 |
342 const ChildrenWidgetSet* viewChildren = children(); | 342 const ChildrenWidgetSet* viewChildren = children(); |
343 for (const RefPtrWillBeMember<Widget>& child : *viewChildren) { | 343 for (const RefPtrWillBeMember<Widget>& child : *viewChildren) { |
344 Widget* widget = child.get(); | 344 Widget* widget = child.get(); |
345 if (widget->isFrameView()) | 345 if (widget->isFrameView()) |
346 toFrameView(widget)->invalidateAllCustomScrollbarsOnActiveChanged(); | 346 toFrameView(widget)->invalidateAllCustomScrollbarsOnActiveChanged(); |
347 else if (usesWindowInactiveSelector && widget->isScrollbar() && toScroll
bar(widget)->isCustomScrollbar()) | 347 else if (usesWindowInactiveSelector && widget->isScrollbar() && toScroll
bar(widget)->isCustomScrollbar()) |
348 toScrollbar(widget)->styleChanged(); | 348 toScrollbar(widget)->styleChanged(); |
349 } | 349 } |
350 if (usesWindowInactiveSelector) | 350 if (usesWindowInactiveSelector) |
(...skipping 3748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4099 { | 4099 { |
4100 Settings* settings = frame().settings(); | 4100 Settings* settings = frame().settings(); |
4101 if (!settings || !settings->rootLayerScrolls()) | 4101 if (!settings || !settings->rootLayerScrolls()) |
4102 return this; | 4102 return this; |
4103 | 4103 |
4104 LayoutView* layoutView = this->layoutView(); | 4104 LayoutView* layoutView = this->layoutView(); |
4105 return layoutView ? layoutView->scrollableArea() : nullptr; | 4105 return layoutView ? layoutView->scrollableArea() : nullptr; |
4106 } | 4106 } |
4107 | 4107 |
4108 } // namespace blink | 4108 } // namespace blink |
OLD | NEW |