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

Side by Side Diff: Source/core/rendering/RenderScrollbarPart.cpp

Issue 470633002: Rename repaint to paintInvalidation in rendering/style. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 setInline(false); 142 setInline(false);
143 } 143 }
144 144
145 void RenderScrollbarPart::styleDidChange(StyleDifference diff, const RenderStyle * oldStyle) 145 void RenderScrollbarPart::styleDidChange(StyleDifference diff, const RenderStyle * oldStyle)
146 { 146 {
147 RenderBlock::styleDidChange(diff, oldStyle); 147 RenderBlock::styleDidChange(diff, oldStyle);
148 setInline(false); 148 setInline(false);
149 clearPositionedState(); 149 clearPositionedState();
150 setFloating(false); 150 setFloating(false);
151 setHasOverflowClip(false); 151 setHasOverflowClip(false);
152 if (oldStyle && m_scrollbar && m_part != NoPart && (diff.needsRepaint() || d iff.needsLayout())) 152 if (oldStyle && m_scrollbar && m_part != NoPart && (diff.needsPaintInvalidat ion() || diff.needsLayout()))
153 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part); 153 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part);
154 } 154 }
155 155
156 void RenderScrollbarPart::imageChanged(WrappedImagePtr image, const IntRect* rec t) 156 void RenderScrollbarPart::imageChanged(WrappedImagePtr image, const IntRect* rec t)
157 { 157 {
158 if (m_scrollbar && m_part != NoPart) 158 if (m_scrollbar && m_part != NoPart)
159 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part); 159 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part);
160 else { 160 else {
161 if (FrameView* frameView = view()->frameView()) { 161 if (FrameView* frameView = view()->frameView()) {
162 if (frameView->isFrameViewScrollCorner(this)) { 162 if (frameView->isFrameViewScrollCorner(this)) {
(...skipping 27 matching lines...) Expand all
190 } 190 }
191 191
192 RenderObject* RenderScrollbarPart::rendererOwningScrollbar() const 192 RenderObject* RenderScrollbarPart::rendererOwningScrollbar() const
193 { 193 {
194 if (!m_scrollbar) 194 if (!m_scrollbar)
195 return 0; 195 return 0;
196 return m_scrollbar->owningRenderer(); 196 return m_scrollbar->owningRenderer();
197 } 197 }
198 198
199 } 199 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698