OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |