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

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

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 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
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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 toScrollbar(widget)->styleChanged(); 356 toScrollbar(widget)->styleChanged();
357 if (widget->isScrollbar()) 357 if (widget->isScrollbar())
358 toScrollbar(widget)->windowActiveChangedForSnowLeopardOnly(); 358 toScrollbar(widget)->windowActiveChangedForSnowLeopardOnly();
359 } 359 }
360 if (usesWindowInactiveSelector) 360 if (usesWindowInactiveSelector)
361 recalculateCustomScrollbarStyle(); 361 recalculateCustomScrollbarStyle();
362 } 362 }
363 363
364 void FrameView::recalculateScrollbarOverlayStyle() 364 void FrameView::recalculateScrollbarOverlayStyle()
365 { 365 {
366 ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle(); 366 ScrollbarOverlayStyle oldOverlayStyle = getScrollbarOverlayStyle();
367 ScrollbarOverlayStyle overlayStyle = ScrollbarOverlayStyleDefault; 367 ScrollbarOverlayStyle overlayStyle = ScrollbarOverlayStyleDefault;
368 368
369 Color backgroundColor = documentBackgroundColor(); 369 Color backgroundColor = documentBackgroundColor();
370 // Reduce the background color from RGB to a lightness value 370 // Reduce the background color from RGB to a lightness value
371 // and determine which scrollbar style to use based on a lightness 371 // and determine which scrollbar style to use based on a lightness
372 // heuristic. 372 // heuristic.
373 double hue, saturation, lightness; 373 double hue, saturation, lightness;
374 backgroundColor.getHSL(hue, saturation, lightness); 374 backgroundColor.getHSL(hue, saturation, lightness);
375 if (lightness <= .5) 375 if (lightness <= .5)
376 overlayStyle = ScrollbarOverlayStyleLight; 376 overlayStyle = ScrollbarOverlayStyleLight;
(...skipping 3753 matching lines...) Expand 10 before | Expand all | Expand 10 after
4130 return m_hiddenForThrottling && m_crossOriginForThrottling; 4130 return m_hiddenForThrottling && m_crossOriginForThrottling;
4131 } 4131 }
4132 4132
4133 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 4133 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
4134 { 4134 {
4135 ASSERT(layoutView()); 4135 ASSERT(layoutView());
4136 return *layoutView(); 4136 return *layoutView();
4137 } 4137 }
4138 4138
4139 } // namespace blink 4139 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/WheelEvent.cpp ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698