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

Unified Diff: third_party/WebKit/Source/core/paint/TableCellPaintInvalidator.h

Issue 2851553002: Invalidate row/section for backgrounds when cell's geometry changes (Closed)
Patch Set: Fix non-spinvalidation Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/TableCellPaintInvalidator.h
diff --git a/third_party/WebKit/Source/core/paint/TableCellPaintInvalidator.h b/third_party/WebKit/Source/core/paint/TableCellPaintInvalidator.h
new file mode 100644
index 0000000000000000000000000000000000000000..d47b5825cf88bdded8ac9107f61fed748a08e7b5
--- /dev/null
+++ b/third_party/WebKit/Source/core/paint/TableCellPaintInvalidator.h
@@ -0,0 +1,33 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef TableCellPaintInvalidator_h
+#define TableCellPaintInvalidator_h
+
+#include "platform/graphics/PaintInvalidationReason.h"
+#include "platform/wtf/Allocator.h"
+
+namespace blink {
+
+class LayoutTableCell;
+struct PaintInvalidatorContext;
+
+class TableCellPaintInvalidator {
+ STACK_ALLOCATED();
+
+ public:
+ TableCellPaintInvalidator(const LayoutTableCell& cell,
+ const PaintInvalidatorContext& context)
+ : cell_(cell), context_(context) {}
+
+ PaintInvalidationReason InvalidatePaint();
+
+ private:
+ const LayoutTableCell& cell_;
+ const PaintInvalidatorContext& context_;
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « third_party/WebKit/Source/core/paint/BUILD.gn ('k') | third_party/WebKit/Source/core/paint/TableCellPaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698