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

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 975933002: Return reference from styleEngine() accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698