| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 child = child->NextSibling()) { | 284 child = child->NextSibling()) { |
| 285 if (child->IsLayoutMultiColumnSpannerPlaceholder()) { | 285 if (child->IsLayoutMultiColumnSpannerPlaceholder()) { |
| 286 child->GetMutableForPainting().ClearPaintFlags(); | 286 child->GetMutableForPainting().ClearPaintFlags(); |
| 287 continue; | 287 continue; |
| 288 } | 288 } |
| 289 Walk(*child, context); | 289 Walk(*child, context); |
| 290 } | 290 } |
| 291 | 291 |
| 292 if (object.IsLayoutPart()) { | 292 if (object.IsLayoutPart()) { |
| 293 const LayoutPart& layout_part = ToLayoutPart(object); | 293 const LayoutPart& layout_part = ToLayoutPart(object); |
| 294 FrameViewBase* frame_view_base = layout_part.GetFrameViewBase(); | 294 FrameView* frame_view = layout_part.GetNodeFrameView(); |
| 295 if (frame_view_base && frame_view_base->IsFrameView()) { | 295 if (frame_view) { |
| 296 if (context.tree_builder_context) { | 296 if (context.tree_builder_context) { |
| 297 context.tree_builder_context->current.paint_offset += | 297 context.tree_builder_context->current.paint_offset += |
| 298 layout_part.ReplacedContentRect().Location() - | 298 layout_part.ReplacedContentRect().Location() - |
| 299 frame_view_base->FrameRect().Location(); | 299 frame_view->FrameRect().Location(); |
| 300 context.tree_builder_context->current.paint_offset = | 300 context.tree_builder_context->current.paint_offset = |
| 301 RoundedIntPoint(context.tree_builder_context->current.paint_offset); | 301 RoundedIntPoint(context.tree_builder_context->current.paint_offset); |
| 302 } | 302 } |
| 303 Walk(*ToFrameView(frame_view_base), context); | 303 Walk(*frame_view, context); |
| 304 } | 304 } |
| 305 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). | 305 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). |
| 306 } | 306 } |
| 307 | 307 |
| 308 object.GetMutableForPainting().ClearPaintFlags(); | 308 object.GetMutableForPainting().ClearPaintFlags(); |
| 309 } | 309 } |
| 310 | 310 |
| 311 } // namespace blink | 311 } // namespace blink |
| OLD | NEW |