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

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

Issue 1849343003: mac: Remove IsOSSnowLeopard(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 { 347 {
348 bool usesWindowInactiveSelector = m_frame->document()->styleEngine().usesWin dowInactiveSelector(); 348 bool usesWindowInactiveSelector = m_frame->document()->styleEngine().usesWin dowInactiveSelector();
349 349
350 const ChildrenWidgetSet* viewChildren = children(); 350 const ChildrenWidgetSet* viewChildren = children();
351 for (const Member<Widget>& child : *viewChildren) { 351 for (const Member<Widget>& child : *viewChildren) {
352 Widget* widget = child.get(); 352 Widget* widget = child.get();
353 if (widget->isFrameView()) 353 if (widget->isFrameView())
354 toFrameView(widget)->invalidateAllCustomScrollbarsOnActiveChanged(); 354 toFrameView(widget)->invalidateAllCustomScrollbarsOnActiveChanged();
355 else if (usesWindowInactiveSelector && widget->isScrollbar() && toScroll bar(widget)->isCustomScrollbar()) 355 else if (usesWindowInactiveSelector && widget->isScrollbar() && toScroll bar(widget)->isCustomScrollbar())
356 toScrollbar(widget)->styleChanged(); 356 toScrollbar(widget)->styleChanged();
357 if (widget->isScrollbar())
358 toScrollbar(widget)->windowActiveChangedForSnowLeopardOnly();
359 } 357 }
360 if (usesWindowInactiveSelector) 358 if (usesWindowInactiveSelector)
361 recalculateCustomScrollbarStyle(); 359 recalculateCustomScrollbarStyle();
362 } 360 }
363 361
364 void FrameView::clear() 362 void FrameView::clear()
365 { 363 {
366 reset(); 364 reset();
367 setScrollbarsSuppressed(true); 365 setScrollbarsSuppressed(true);
368 } 366 }
(...skipping 3737 matching lines...) Expand 10 before | Expand all | Expand 10 after
4106 return m_hiddenForThrottling && m_crossOriginForThrottling; 4104 return m_hiddenForThrottling && m_crossOriginForThrottling;
4107 } 4105 }
4108 4106
4109 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 4107 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
4110 { 4108 {
4111 ASSERT(layoutView()); 4109 ASSERT(layoutView());
4112 return *layoutView(); 4110 return *layoutView();
4113 } 4111 }
4114 4112
4115 } // namespace blink 4113 } // namespace blink
OLDNEW
« no previous file with comments | « sandbox/mac/bootstrap_sandbox_unittest.mm ('k') | third_party/WebKit/Source/platform/mac/VersionUtilMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698