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..c9a0cf35df8fcd4541ce164c83d592d80e63bfd9 |
--- /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 { |
wkorman
2017/04/27 22:30:23
Add class header doc noting why we need a table ce
Xianzhu
2017/04/28 00:31:06
I tried to add header doc but all would be impleme
wkorman
2017/04/28 02:24:54
Yeah, this makes sense. Could add a brief header c
|
+ STACK_ALLOCATED(); |
+ |
+ public: |
+ TableCellPaintInvalidator(const LayoutTableCell& cell, |
+ const PaintInvalidatorContext& context) |
+ : cell_(cell), context_(context) {} |
+ |
+ PaintInvalidationReason InvalidatePaintIfNeeded(); |
+ |
+ private: |
+ const LayoutTableCell& cell_; |
+ const PaintInvalidatorContext& context_; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |