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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 void LayoutScrollbarPart::computePreferredLogicalWidths() | 159 void LayoutScrollbarPart::computePreferredLogicalWidths() |
160 { | 160 { |
161 if (!preferredLogicalWidthsDirty()) | 161 if (!preferredLogicalWidthsDirty()) |
162 return; | 162 return; |
163 | 163 |
164 m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = 0; | 164 m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = 0; |
165 | 165 |
166 clearPreferredLogicalWidthsDirty(); | 166 clearPreferredLogicalWidthsDirty(); |
167 } | 167 } |
168 | 168 |
169 void LayoutScrollbarPart::styleWillChange(StyleDifference diff, const LayoutStyl
e& newStyle) | 169 void LayoutScrollbarPart::styleWillChange(StyleDifference diff, const ComputedSt
yle& newStyle) |
170 { | 170 { |
171 LayoutBlock::styleWillChange(diff, newStyle); | 171 LayoutBlock::styleWillChange(diff, newStyle); |
172 setInline(false); | 172 setInline(false); |
173 } | 173 } |
174 | 174 |
175 void LayoutScrollbarPart::styleDidChange(StyleDifference diff, const LayoutStyle
* oldStyle) | 175 void LayoutScrollbarPart::styleDidChange(StyleDifference diff, const ComputedSty
le* oldStyle) |
176 { | 176 { |
177 LayoutBlock::styleDidChange(diff, oldStyle); | 177 LayoutBlock::styleDidChange(diff, oldStyle); |
178 setInline(false); | 178 setInline(false); |
179 clearPositionedState(); | 179 clearPositionedState(); |
180 setFloating(false); | 180 setFloating(false); |
181 setHasOverflowClip(false); | 181 setHasOverflowClip(false); |
182 if (oldStyle && m_scrollbar && m_part != NoPart && (diff.needsPaintInvalidat
ion() || diff.needsLayout())) | 182 if (oldStyle && m_scrollbar && m_part != NoPart && (diff.needsPaintInvalidat
ion() || diff.needsLayout())) |
183 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part); | 183 m_scrollbar->theme()->invalidatePart(m_scrollbar, m_part); |
184 } | 184 } |
185 | 185 |
(...skipping 14 matching lines...) Expand all Loading... |
200 } | 200 } |
201 | 201 |
202 LayoutObject* LayoutScrollbarPart::rendererOwningScrollbar() const | 202 LayoutObject* LayoutScrollbarPart::rendererOwningScrollbar() const |
203 { | 203 { |
204 if (!m_scrollbar) | 204 if (!m_scrollbar) |
205 return 0; | 205 return 0; |
206 return m_scrollbar->owningRenderer(); | 206 return m_scrollbar->owningRenderer(); |
207 } | 207 } |
208 | 208 |
209 } | 209 } |
OLD | NEW |