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/TablePaintInvalidator.h" | 5 #include "core/paint/TablePaintInvalidator.h" |
6 | 6 |
7 #include "core/layout/LayoutTable.h" | 7 #include "core/layout/LayoutTable.h" |
8 #include "core/layout/LayoutTableCell.h" | 8 #include "core/layout/LayoutTableCell.h" |
9 #include "core/layout/LayoutTableCol.h" | 9 #include "core/layout/LayoutTableCol.h" |
10 #include "core/layout/LayoutTableRow.h" | 10 #include "core/layout/LayoutTableRow.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 if (has_col_changed_background) { | 42 if (has_col_changed_background) { |
43 for (LayoutObject* child = table_.FirstChild(); child; | 43 for (LayoutObject* child = table_.FirstChild(); child; |
44 child = child->NextSibling()) { | 44 child = child->NextSibling()) { |
45 if (!child->IsTableSection()) | 45 if (!child->IsTableSection()) |
46 continue; | 46 continue; |
47 LayoutTableSection* section = ToLayoutTableSection(child); | 47 LayoutTableSection* section = ToLayoutTableSection(child); |
48 section->EnsureIsReadyForPaintInvalidation(); | 48 section->EnsureIsReadyForPaintInvalidation(); |
49 ObjectPaintInvalidator(*section) | 49 ObjectPaintInvalidator(*section) |
50 .SlowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient( | 50 .SlowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient( |
51 *section, kPaintInvalidationStyleChange); | 51 *section, PaintInvalidationReason::kStyle); |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 return reason; | 55 return reason; |
56 } | 56 } |
57 | 57 |
58 } // namespace blink | 58 } // namespace blink |
OLD | NEW |