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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.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) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 88
89 void Scrollbar::setFrameRect(const IntRect& frameRect) { 89 void Scrollbar::setFrameRect(const IntRect& frameRect) {
90 if (frameRect == this->frameRect()) 90 if (frameRect == this->frameRect())
91 return; 91 return;
92 92
93 Widget::setFrameRect(frameRect); 93 Widget::setFrameRect(frameRect);
94 setNeedsPaintInvalidation(AllParts); 94 setNeedsPaintInvalidation(AllParts);
95 } 95 }
96 96
97 ScrollbarOverlayStyle Scrollbar::getScrollbarOverlayStyle() const { 97 ScrollbarOverlayColorTheme Scrollbar::getScrollbarOverlayColorTheme() const {
98 return m_scrollableArea ? m_scrollableArea->getScrollbarOverlayStyle() 98 return m_scrollableArea ? m_scrollableArea->getScrollbarOverlayColorTheme()
99 : ScrollbarOverlayStyleDefault; 99 : ScrollbarOverlayColorThemeDark;
100 } 100 }
101 101
102 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const { 102 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const {
103 if (m_scrollableArea) 103 if (m_scrollableArea)
104 m_scrollableArea->getTickmarks(tickmarks); 104 m_scrollableArea->getTickmarks(tickmarks);
105 } 105 }
106 106
107 bool Scrollbar::isScrollableAreaActive() const { 107 bool Scrollbar::isScrollableAreaActive() const {
108 return m_scrollableArea && m_scrollableArea->isActive(); 108 return m_scrollableArea && m_scrollableArea->isActive();
109 } 109 }
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 invalidParts = AllParts; 617 invalidParts = AllParts;
618 if (invalidParts & ~ThumbPart) 618 if (invalidParts & ~ThumbPart)
619 m_trackNeedsRepaint = true; 619 m_trackNeedsRepaint = true;
620 if (invalidParts & ThumbPart) 620 if (invalidParts & ThumbPart)
621 m_thumbNeedsRepaint = true; 621 m_thumbNeedsRepaint = true;
622 if (m_scrollableArea) 622 if (m_scrollableArea)
623 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); 623 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation());
624 } 624 }
625 625
626 } // namespace blink 626 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698