| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |