| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |