| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/PaintInvalidator.h" | 5 #include "core/paint/PaintInvalidator.h" |
| 6 | 6 |
| 7 #include "core/editing/FrameSelection.h" | 7 #include "core/editing/FrameSelection.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/frame/Settings.h" | 10 #include "core/frame/Settings.h" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 context.painting_layer = object.PaintingLayer(); | 220 context.painting_layer = object.PaintingLayer(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 if (object.IsLayoutBlockFlow() && ToLayoutBlockFlow(object).ContainsFloats()) | 223 if (object.IsLayoutBlockFlow() && ToLayoutBlockFlow(object).ContainsFloats()) |
| 224 context.painting_layer->SetNeedsPaintPhaseFloat(); | 224 context.painting_layer->SetNeedsPaintPhaseFloat(); |
| 225 | 225 |
| 226 // Table collapsed borders are painted in PaintPhaseDescendantBlockBackgrounds | 226 // Table collapsed borders are painted in PaintPhaseDescendantBlockBackgrounds |
| 227 // on the table's layer. | 227 // on the table's layer. |
| 228 if (object.IsTable()) { | 228 if (object.IsTable()) { |
| 229 const LayoutTable& table = ToLayoutTable(object); | 229 const LayoutTable& table = ToLayoutTable(object); |
| 230 if (table.CollapseBorders() && !table.CollapsedBorders().IsEmpty()) | 230 if (table.ShouldCollapseBorders() && !table.CollapsedBorders().IsEmpty()) |
| 231 context.painting_layer->SetNeedsPaintPhaseDescendantBlockBackgrounds(); | 231 context.painting_layer->SetNeedsPaintPhaseDescendantBlockBackgrounds(); |
| 232 } | 232 } |
| 233 | 233 |
| 234 // The following flags are for descendants of the layer object only. | 234 // The following flags are for descendants of the layer object only. |
| 235 if (object == context.painting_layer->GetLayoutObject()) | 235 if (object == context.painting_layer->GetLayoutObject()) |
| 236 return; | 236 return; |
| 237 | 237 |
| 238 if (object.IsTableSection()) { | 238 if (object.IsTableSection()) { |
| 239 const auto& section = ToLayoutTableSection(object); | 239 const auto& section = ToLayoutTableSection(object); |
| 240 if (section.Table()->HasColElements()) | 240 if (section.Table()->HasColElements()) |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 510 |
| 511 void PaintInvalidator::ProcessPendingDelayedPaintInvalidations() { | 511 void PaintInvalidator::ProcessPendingDelayedPaintInvalidations() { |
| 512 for (auto target : pending_delayed_paint_invalidations_) { | 512 for (auto target : pending_delayed_paint_invalidations_) { |
| 513 target->GetMutableForPainting() | 513 target->GetMutableForPainting() |
| 514 .SetShouldDoFullPaintInvalidationWithoutGeometryChange( | 514 .SetShouldDoFullPaintInvalidationWithoutGeometryChange( |
| 515 kPaintInvalidationDelayedFull); | 515 kPaintInvalidationDelayedFull); |
| 516 } | 516 } |
| 517 } | 517 } |
| 518 | 518 |
| 519 } // namespace blink | 519 } // namespace blink |
| OLD | NEW |