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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp

Issue 1643663002: Conditionally create PaintLayer's scrollable area object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PaintLayerClipper
Patch Set: Created 4 years, 9 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
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698