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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 if (diff.needsPaintInvalidation()) { 286 if (diff.needsPaintInvalidation()) {
287 LayoutObject* parentToInvalidate = parent(); 287 LayoutObject* parentToInvalidate = parent();
288 for (unsigned i = 0; 288 for (unsigned i = 0;
289 i < backgroundObscurationTestMaxDepth && parentToInvalidate; ++i) { 289 i < backgroundObscurationTestMaxDepth && parentToInvalidate; ++i) {
290 parentToInvalidate->invalidateBackgroundObscurationStatus(); 290 parentToInvalidate->invalidateBackgroundObscurationStatus();
291 parentToInvalidate = parentToInvalidate->parent(); 291 parentToInvalidate = parentToInvalidate->parent();
292 } 292 }
293 } 293 }
294 294
295 if (isDocumentElement() || isBody()) { 295 if (isDocumentElement() || isBody()) {
296 document().view()->recalculateScrollbarOverlayStyle( 296 document().view()->recalculateScrollbarOverlayColorTheme(
297 document().view()->documentBackgroundColor()); 297 document().view()->documentBackgroundColor());
298 document().view()->recalculateCustomScrollbarStyle(); 298 document().view()->recalculateCustomScrollbarStyle();
299 if (LayoutView* layoutView = view()) { 299 if (LayoutView* layoutView = view()) {
300 if (PaintLayerScrollableArea* scrollableArea = 300 if (PaintLayerScrollableArea* scrollableArea =
301 layoutView->getScrollableArea()) { 301 layoutView->getScrollableArea()) {
302 if (scrollableArea->horizontalScrollbar() && 302 if (scrollableArea->horizontalScrollbar() &&
303 scrollableArea->horizontalScrollbar()->isCustomScrollbar()) 303 scrollableArea->horizontalScrollbar()->isCustomScrollbar())
304 scrollableArea->horizontalScrollbar()->styleChanged(); 304 scrollableArea->horizontalScrollbar()->styleChanged();
305 if (scrollableArea->verticalScrollbar() && 305 if (scrollableArea->verticalScrollbar() &&
306 scrollableArea->verticalScrollbar()->isCustomScrollbar()) 306 scrollableArea->verticalScrollbar()->isCustomScrollbar())
(...skipping 5288 matching lines...) Expand 10 before | Expand all | Expand 10 after
5595 LayoutRect rect = frameRect(); 5595 LayoutRect rect = frameRect();
5596 5596
5597 LayoutBlock* block = containingBlock(); 5597 LayoutBlock* block = containingBlock();
5598 if (block) 5598 if (block)
5599 block->adjustChildDebugRect(rect); 5599 block->adjustChildDebugRect(rect);
5600 5600
5601 return rect; 5601 return rect;
5602 } 5602 }
5603 5603
5604 } // namespace blink 5604 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698