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

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

Issue 949303002: Fix invalidation during painting of scrollbars (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/scroll/Scrollbar.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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 return; 98 return;
99 99
100 ASSERT(m_scrollableArea); 100 ASSERT(m_scrollableArea);
101 if (m_orientation == VerticalScrollbar) 101 if (m_orientation == VerticalScrollbar)
102 m_animator->willRemoveVerticalScrollbar(this); 102 m_animator->willRemoveVerticalScrollbar(this);
103 else 103 else
104 m_animator->willRemoveHorizontalScrollbar(this); 104 m_animator->willRemoveHorizontalScrollbar(this);
105 #endif 105 #endif
106 } 106 }
107 107
108 void Scrollbar::setFrameRect(const IntRect& frameRect)
109 {
110 if (frameRect == this->frameRect())
111 return;
112
113 invalidate();
114 Widget::setFrameRect(frameRect);
115 invalidate();
116 }
117
108 ScrollbarOverlayStyle Scrollbar::scrollbarOverlayStyle() const 118 ScrollbarOverlayStyle Scrollbar::scrollbarOverlayStyle() const
109 { 119 {
110 return m_scrollableArea ? m_scrollableArea->scrollbarOverlayStyle() : Scroll barOverlayStyleDefault; 120 return m_scrollableArea ? m_scrollableArea->scrollbarOverlayStyle() : Scroll barOverlayStyleDefault;
111 } 121 }
112 122
113 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const 123 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const
114 { 124 {
115 if (m_scrollableArea) 125 if (m_scrollableArea)
116 m_scrollableArea->getTickmarks(tickmarks); 126 m_scrollableArea->getTickmarks(tickmarks);
117 } 127 }
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 565
556 return m_scrollableArea->scrollPosition().y() - m_scrollableArea->minimumScr ollPosition().y(); 566 return m_scrollableArea->scrollPosition().y() - m_scrollableArea->minimumScr ollPosition().y();
557 } 567 }
558 568
559 DisplayItemClient Scrollbar::displayItemClient() const 569 DisplayItemClient Scrollbar::displayItemClient() const
560 { 570 {
561 return m_scrollableArea->displayItemClient(); 571 return m_scrollableArea->displayItemClient();
562 } 572 }
563 573
564 } // namespace blink 574 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698