| 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 23 matching lines...) Expand all Loading... |
| 34 walk(rootFrame, initialContext); | 34 walk(rootFrame, initialContext); |
| 35 m_paintInvalidator.processPendingDelayedPaintInvalidations(); | 35 m_paintInvalidator.processPendingDelayedPaintInvalidations(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 void PrePaintTreeWalk::walk(FrameView& frameView, | 38 void PrePaintTreeWalk::walk(FrameView& frameView, |
| 39 const PrePaintTreeWalkContext& context) { | 39 const PrePaintTreeWalkContext& context) { |
| 40 if (frameView.shouldThrottleRendering()) | 40 if (frameView.shouldThrottleRendering()) |
| 41 return; | 41 return; |
| 42 | 42 |
| 43 PrePaintTreeWalkContext localContext(context); | 43 PrePaintTreeWalkContext localContext(context); |
| 44 m_propertyTreeBuilder.updatePropertiesAndContext( | 44 m_propertyTreeBuilder.updateFramePropertiesAndContext( |
| 45 frameView, localContext.treeBuilderContext); | 45 frameView, localContext.treeBuilderContext); |
| 46 | 46 |
| 47 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) { | 47 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) { |
| 48 m_paintInvalidator.invalidatePaintIfNeeded( | 48 m_paintInvalidator.invalidatePaintIfNeeded( |
| 49 frameView, localContext.paintInvalidatorContext); | 49 frameView, localContext.paintInvalidatorContext); |
| 50 } | 50 } |
| 51 | 51 |
| 52 if (LayoutView* layoutView = frameView.layoutView()) | 52 if (LayoutView* layoutView = frameView.layoutView()) |
| 53 walk(*layoutView, localContext); | 53 walk(*layoutView, localContext); |
| 54 | 54 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 widget->frameRect().location(); | 100 widget->frameRect().location(); |
| 101 localContext.treeBuilderContext.current.paintOffset = | 101 localContext.treeBuilderContext.current.paintOffset = |
| 102 roundedIntPoint(localContext.treeBuilderContext.current.paintOffset); | 102 roundedIntPoint(localContext.treeBuilderContext.current.paintOffset); |
| 103 walk(*toFrameView(widget), localContext); | 103 walk(*toFrameView(widget), localContext); |
| 104 } | 104 } |
| 105 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). | 105 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace blink | 109 } // namespace blink |
| OLD | NEW |