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

Side by Side Diff: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp

Issue 2890013002: LayoutMenuList::ControlClipRect may depend on size of children (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/PrePaintTreeWalk.h" 5 #include "core/paint/PrePaintTreeWalk.h"
6 6
7 #include "core/dom/DocumentLifecycle.h" 7 #include "core/dom/DocumentLifecycle.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" 10 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 return; 274 return;
275 275
276 PrePaintTreeWalkContext context(parent_context, 276 PrePaintTreeWalkContext context(parent_context,
277 needs_tree_builder_context_update); 277 needs_tree_builder_context_update);
278 278
279 // This must happen before updatePropertiesForSelf, because the latter reads 279 // This must happen before updatePropertiesForSelf, because the latter reads
280 // some of the state computed here. 280 // some of the state computed here.
281 UpdateAuxiliaryObjectProperties(object, context); 281 UpdateAuxiliaryObjectProperties(object, context);
282 282
283 if (context.tree_builder_context) { 283 if (context.tree_builder_context) {
284 DCHECK(context.tree_builder_context);
285 property_tree_builder_.UpdatePropertiesForSelf( 284 property_tree_builder_.UpdatePropertiesForSelf(
286 object, *context.tree_builder_context); 285 object, *context.tree_builder_context);
287 } 286 }
288 287
289 paint_invalidator_.InvalidatePaintIfNeeded(object, 288 paint_invalidator_.InvalidatePaintIfNeeded(object,
290 context.paint_invalidator_context); 289 context.paint_invalidator_context);
291 290
292 if (context.tree_builder_context) { 291 if (context.tree_builder_context) {
293 property_tree_builder_.UpdatePropertiesForChildren( 292 property_tree_builder_.UpdatePropertiesForChildren(
294 object, *context.tree_builder_context); 293 object, *context.tree_builder_context);
(...skipping 22 matching lines...) Expand all
317 } 316 }
318 Walk(*frame_view, context); 317 Walk(*frame_view, context);
319 } 318 }
320 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). 319 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281).
321 } 320 }
322 321
323 object.GetMutableForPainting().ClearPaintFlags(); 322 object.GetMutableForPainting().ClearPaintFlags();
324 } 323 }
325 324
326 } // namespace blink 325 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698