| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |