| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 setInline(false); | 144 setInline(false); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void RenderScrollbarPart::styleDidChange(StyleDifference diff, const RenderStyle
* oldStyle) | 147 void RenderScrollbarPart::styleDidChange(StyleDifference diff, const RenderStyle
* oldStyle) |
| 148 { | 148 { |
| 149 RenderBlock::styleDidChange(diff, oldStyle); | 149 RenderBlock::styleDidChange(diff, oldStyle); |
| 150 setInline(false); | 150 setInline(false); |
| 151 clearPositionedState(); | 151 clearPositionedState(); |
| 152 setFloating(false); | 152 setFloating(false); |
| 153 setHasOverflowClip(false); | 153 setHasOverflowClip(false); |
| 154 if (oldStyle && m_scrollbar && m_part != NoPart && (diff.needsRepaint() || d
iff.needsLayout())) | 154 if (oldStyle && m_scrollbar && m_part != NoPart && diff >= StyleDifferenceRe
paint) |
| 155 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part); | 155 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part); |
| 156 } | 156 } |
| 157 | 157 |
| 158 void RenderScrollbarPart::imageChanged(WrappedImagePtr image, const IntRect* rec
t) | 158 void RenderScrollbarPart::imageChanged(WrappedImagePtr image, const IntRect* rec
t) |
| 159 { | 159 { |
| 160 if (m_scrollbar && m_part != NoPart) | 160 if (m_scrollbar && m_part != NoPart) |
| 161 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part); | 161 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part); |
| 162 else { | 162 else { |
| 163 if (FrameView* frameView = view()->frameView()) { | 163 if (FrameView* frameView = view()->frameView()) { |
| 164 if (frameView->isFrameViewScrollCorner(this)) { | 164 if (frameView->isFrameViewScrollCorner(this)) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 195 } | 195 } |
| 196 | 196 |
| 197 RenderObject* RenderScrollbarPart::rendererOwningScrollbar() const | 197 RenderObject* RenderScrollbarPart::rendererOwningScrollbar() const |
| 198 { | 198 { |
| 199 if (!m_scrollbar) | 199 if (!m_scrollbar) |
| 200 return 0; | 200 return 0; |
| 201 return m_scrollbar->owningRenderer(); | 201 return m_scrollbar->owningRenderer(); |
| 202 } | 202 } |
| 203 | 203 |
| 204 } | 204 } |
| OLD | NEW |