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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 } | 173 } |
174 | 174 |
175 void LayoutScrollbarPart::styleDidChange(StyleDifference diff, const ComputedSty le* oldStyle) | 175 void LayoutScrollbarPart::styleDidChange(StyleDifference diff, const ComputedSty le* oldStyle) |
176 { | 176 { |
177 LayoutBlock::styleDidChange(diff, oldStyle); | 177 LayoutBlock::styleDidChange(diff, oldStyle); |
178 // See adjustStyleBeforeSet() above. | 178 // See adjustStyleBeforeSet() above. |
179 ASSERT(!isOrthogonalWritingModeRoot()); | 179 ASSERT(!isOrthogonalWritingModeRoot()); |
180 setInline(false); | 180 setInline(false); |
181 clearPositionedState(); | 181 clearPositionedState(); |
182 setFloating(false); | 182 setFloating(false); |
183 setHasOverflowClip(false); | |
Xianzhu
2016/02/25 19:57:51
This is changed to use allowsOverflowClip() method
| |
184 if (oldStyle && (diff.needsPaintInvalidation() || diff.needsLayout())) | 183 if (oldStyle && (diff.needsPaintInvalidation() || diff.needsLayout())) |
185 setNeedsPaintInvalidation(); | 184 setNeedsPaintInvalidation(); |
186 } | 185 } |
187 | 186 |
188 void LayoutScrollbarPart::imageChanged(WrappedImagePtr image, const IntRect* rec t) | 187 void LayoutScrollbarPart::imageChanged(WrappedImagePtr image, const IntRect* rec t) |
189 { | 188 { |
190 setNeedsPaintInvalidation(); | 189 setNeedsPaintInvalidation(); |
191 LayoutBlock::imageChanged(image, rect); | 190 LayoutBlock::imageChanged(image, rect); |
192 } | 191 } |
193 | 192 |
(...skipping 16 matching lines...) Expand all Loading... | |
210 frameView->setScrollCornerNeedsPaintInvalidation(); | 209 frameView->setScrollCornerNeedsPaintInvalidation(); |
211 return; | 210 return; |
212 } | 211 } |
213 } | 212 } |
214 | 213 |
215 // This LayoutScrollbarPart belongs to a PaintLayerScrollableArea. | 214 // This LayoutScrollbarPart belongs to a PaintLayerScrollableArea. |
216 toLayoutBox(parent())->scrollableArea()->setScrollCornerNeedsPaintInvalidati on(); | 215 toLayoutBox(parent())->scrollableArea()->setScrollCornerNeedsPaintInvalidati on(); |
217 } | 216 } |
218 | 217 |
219 } // namespace blink | 218 } // namespace blink |
OLD | NEW |