| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 child = child->nextSibling()) { | 257 child = child->nextSibling()) { |
| 258 if (child->isLayoutMultiColumnSpannerPlaceholder()) { | 258 if (child->isLayoutMultiColumnSpannerPlaceholder()) { |
| 259 child->getMutableForPainting().clearPaintFlags(); | 259 child->getMutableForPainting().clearPaintFlags(); |
| 260 continue; | 260 continue; |
| 261 } | 261 } |
| 262 walk(*child, context); | 262 walk(*child, context); |
| 263 } | 263 } |
| 264 | 264 |
| 265 if (object.isLayoutPart()) { | 265 if (object.isLayoutPart()) { |
| 266 const LayoutPart& layoutPart = toLayoutPart(object); | 266 const LayoutPart& layoutPart = toLayoutPart(object); |
| 267 FrameViewBase* frameViewBase = layoutPart.widget(); | 267 FrameViewBase* frameViewBase = layoutPart.frameViewBase(); |
| 268 if (frameViewBase && frameViewBase->isFrameView()) { | 268 if (frameViewBase && frameViewBase->isFrameView()) { |
| 269 context.treeBuilderContext.current.paintOffset += | 269 context.treeBuilderContext.current.paintOffset += |
| 270 layoutPart.replacedContentRect().location() - | 270 layoutPart.replacedContentRect().location() - |
| 271 frameViewBase->frameRect().location(); | 271 frameViewBase->frameRect().location(); |
| 272 context.treeBuilderContext.current.paintOffset = | 272 context.treeBuilderContext.current.paintOffset = |
| 273 roundedIntPoint(context.treeBuilderContext.current.paintOffset); | 273 roundedIntPoint(context.treeBuilderContext.current.paintOffset); |
| 274 walk(*toFrameView(frameViewBase), context); | 274 walk(*toFrameView(frameViewBase), context); |
| 275 } | 275 } |
| 276 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). | 276 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). |
| 277 } | 277 } |
| 278 | 278 |
| 279 object.getMutableForPainting().clearPaintFlags(); | 279 object.getMutableForPainting().clearPaintFlags(); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace blink | 282 } // namespace blink |
| OLD | NEW |