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

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

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: fix test Created 4 years, 1 month 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 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2115 m_baseBackgroundColor = backgroundColor; 2115 m_baseBackgroundColor = backgroundColor;
2116 2116
2117 if (!layoutViewItem().isNull() && 2117 if (!layoutViewItem().isNull() &&
2118 layoutViewItem().layer()->hasCompositedLayerMapping()) { 2118 layoutViewItem().layer()->hasCompositedLayerMapping()) {
2119 CompositedLayerMapping* compositedLayerMapping = 2119 CompositedLayerMapping* compositedLayerMapping =
2120 layoutViewItem().layer()->compositedLayerMapping(); 2120 layoutViewItem().layer()->compositedLayerMapping();
2121 compositedLayerMapping->updateContentsOpaque(); 2121 compositedLayerMapping->updateContentsOpaque();
2122 if (compositedLayerMapping->mainGraphicsLayer()) 2122 if (compositedLayerMapping->mainGraphicsLayer())
2123 compositedLayerMapping->mainGraphicsLayer()->setNeedsDisplay(); 2123 compositedLayerMapping->mainGraphicsLayer()->setNeedsDisplay();
2124 } 2124 }
2125 recalculateScrollbarOverlayStyle(documentBackgroundColor()); 2125 recalculateScrollbarOverlayColorTheme(documentBackgroundColor());
2126 2126
2127 if (!shouldThrottleRendering()) 2127 if (!shouldThrottleRendering())
2128 page()->animator().scheduleVisualUpdate(m_frame.get()); 2128 page()->animator().scheduleVisualUpdate(m_frame.get());
2129 } 2129 }
2130 2130
2131 void FrameView::updateBackgroundRecursively(const Color& backgroundColor, 2131 void FrameView::updateBackgroundRecursively(const Color& backgroundColor,
2132 bool transparent) { 2132 bool transparent) {
2133 forAllNonThrottledFrameViews( 2133 forAllNonThrottledFrameViews(
2134 [backgroundColor, transparent](FrameView& frameView) { 2134 [backgroundColor, transparent](FrameView& frameView) {
2135 frameView.setTransparent(transparent); 2135 frameView.setTransparent(transparent);
(...skipping 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after
4538 DCHECK(m_frame->isMainFrame()); 4538 DCHECK(m_frame->isMainFrame());
4539 return m_initialViewportSize.width(); 4539 return m_initialViewportSize.width();
4540 } 4540 }
4541 4541
4542 int FrameView::initialViewportHeight() const { 4542 int FrameView::initialViewportHeight() const {
4543 DCHECK(m_frame->isMainFrame()); 4543 DCHECK(m_frame->isMainFrame());
4544 return m_initialViewportSize.height(); 4544 return m_initialViewportSize.height();
4545 } 4545 }
4546 4546
4547 } // namespace blink 4547 } // namespace blink
OLDNEW
« no previous file with comments | « content/child/webthemeengine_impl_default.cc ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698