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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp

Issue 2729683002: Handle resize in PaintPropertyTreeBuilder::updateForObjectSizeAndLocation() (Closed)
Patch Set: Fix a typo (ScrollbarWithChange -> ScrollbarWidthChange) Created 3 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 visitor->trace(m_hostWindow); 88 visitor->trace(m_hostWindow);
89 FrameViewBase::trace(visitor); 89 FrameViewBase::trace(visitor);
90 } 90 }
91 91
92 void Scrollbar::setFrameRect(const IntRect& frameRect) { 92 void Scrollbar::setFrameRect(const IntRect& frameRect) {
93 if (frameRect == this->frameRect()) 93 if (frameRect == this->frameRect())
94 return; 94 return;
95 95
96 FrameViewBase::setFrameRect(frameRect); 96 FrameViewBase::setFrameRect(frameRect);
97 setNeedsPaintInvalidation(AllParts); 97 setNeedsPaintInvalidation(AllParts);
98 if (m_scrollableArea)
99 m_scrollableArea->scrollbarFrameRectChanged();
98 } 100 }
99 101
100 ScrollbarOverlayColorTheme Scrollbar::getScrollbarOverlayColorTheme() const { 102 ScrollbarOverlayColorTheme Scrollbar::getScrollbarOverlayColorTheme() const {
101 return m_scrollableArea ? m_scrollableArea->getScrollbarOverlayColorTheme() 103 return m_scrollableArea ? m_scrollableArea->getScrollbarOverlayColorTheme()
102 : ScrollbarOverlayColorThemeDark; 104 : ScrollbarOverlayColorThemeDark;
103 } 105 }
104 106
105 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const { 107 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const {
106 if (m_scrollableArea) 108 if (m_scrollableArea)
107 m_scrollableArea->getTickmarks(tickmarks); 109 m_scrollableArea->getTickmarks(tickmarks);
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 invalidParts = AllParts; 636 invalidParts = AllParts;
635 if (invalidParts & ~ThumbPart) 637 if (invalidParts & ~ThumbPart)
636 m_trackNeedsRepaint = true; 638 m_trackNeedsRepaint = true;
637 if (invalidParts & ThumbPart) 639 if (invalidParts & ThumbPart)
638 m_thumbNeedsRepaint = true; 640 m_thumbNeedsRepaint = true;
639 if (m_scrollableArea) 641 if (m_scrollableArea)
640 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); 642 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation());
641 } 643 }
642 644
643 } // namespace blink 645 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698