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

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

Issue 1424983002: Invalidate scrollbars when window activity changes if needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: be forceful about 10.6-only Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/mac/VersionUtilMac.h » ('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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 { 339 {
340 bool usesWindowInactiveSelector = m_frame->document()->styleEngine().usesWin dowInactiveSelector(); 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 if (widget->isScrollbar())
350 toScrollbar(widget)->windowActiveChangedForSnowLeopardOnly();
349 } 351 }
350 if (usesWindowInactiveSelector) 352 if (usesWindowInactiveSelector)
351 recalculateCustomScrollbarStyle(); 353 recalculateCustomScrollbarStyle();
352 } 354 }
353 355
354 void FrameView::recalculateScrollbarOverlayStyle() 356 void FrameView::recalculateScrollbarOverlayStyle()
355 { 357 {
356 ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle(); 358 ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle();
357 ScrollbarOverlayStyle overlayStyle = ScrollbarOverlayStyleDefault; 359 ScrollbarOverlayStyle overlayStyle = ScrollbarOverlayStyleDefault;
358 360
(...skipping 3624 matching lines...) Expand 10 before | Expand all | Expand 10 after
3983 return m_hiddenForThrottling && m_crossOriginForThrottling; 3985 return m_hiddenForThrottling && m_crossOriginForThrottling;
3984 } 3986 }
3985 3987
3986 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 3988 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
3987 { 3989 {
3988 ASSERT(layoutView()); 3990 ASSERT(layoutView());
3989 return *layoutView(); 3991 return *layoutView();
3990 } 3992 }
3991 3993
3992 } // namespace blink 3994 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/mac/VersionUtilMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698