Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698