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

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

Issue 2874413003: 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 return; 302 return;
303 303
304 PrePaintTreeWalkContext context(parent_context, 304 PrePaintTreeWalkContext context(parent_context,
305 needs_tree_builder_context_update); 305 needs_tree_builder_context_update);
306 306
307 // This must happen before updatePropertiesForSelf, because the latter reads 307 // This must happen before updatePropertiesForSelf, because the latter reads
308 // some of the state computed here. 308 // some of the state computed here.
309 UpdateAuxiliaryObjectProperties(object, context); 309 UpdateAuxiliaryObjectProperties(object, context);
310 310
311 if (context.tree_builder_context) { 311 if (context.tree_builder_context) {
312 DCHECK(context.tree_builder_context);
313 property_tree_builder_.UpdatePropertiesForSelf( 312 property_tree_builder_.UpdatePropertiesForSelf(
314 object, *context.tree_builder_context); 313 object, *context.tree_builder_context);
315 } 314 }
316 315
317 paint_invalidator_.InvalidatePaint(object, context.tree_builder_context.get(), 316 paint_invalidator_.InvalidatePaint(object, context.tree_builder_context.get(),
318 *context.paint_invalidator_context); 317 *context.paint_invalidator_context);
319 318
320 if (context.tree_builder_context) { 319 if (context.tree_builder_context) {
321 property_tree_builder_.UpdatePropertiesForChildren( 320 property_tree_builder_.UpdatePropertiesForChildren(
322 object, *context.tree_builder_context); 321 object, *context.tree_builder_context);
(...skipping 23 matching lines...) Expand all
346 } 345 }
347 Walk(*frame_view, context); 346 Walk(*frame_view, context);
348 } 347 }
349 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). 348 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281).
350 } 349 }
351 350
352 object.GetMutableForPainting().ClearPaintFlags(); 351 object.GetMutableForPainting().ClearPaintFlags();
353 } 352 }
354 353
355 } // namespace blink 354 } // 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