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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableCell.cpp

Issue 2854623002: Invalidate row/section for backgrounds when cell's geometry changes (Closed)
Patch Set: 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/layout/LayoutTableCell.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
index 390d419a7e79306141689d5bfded55d62b7b31f2..ff4ca6651911ff07b47adbeabb331e6e9ffae552 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
@@ -34,6 +34,7 @@
#include "core/layout/SubtreeLayoutScope.h"
#include "core/paint/ObjectPaintInvalidator.h"
#include "core/paint/PaintLayer.h"
+#include "core/paint/TableCellPaintInvalidator.h"
#include "core/paint/TableCellPainter.h"
#include "core/style/CollapsedBorderValue.h"
#include "platform/geometry/FloatQuad.h"
@@ -1487,4 +1488,14 @@ bool LayoutTableCell::HasLineIfEmpty() const {
return LayoutBlock::HasLineIfEmpty();
}
+PaintInvalidationReason LayoutTableCell::InvalidatePaintIfNeeded(
+ const PaintInvalidatorContext& context) const {
+ return TableCellPaintInvalidator(*this, context).InvalidatePaint();
+}
+
+PaintInvalidationReason LayoutTableCell::InvalidatePaintIfNeeded(
+ const PaintInvalidationState& state) {
+ return LayoutBlockFlow::InvalidatePaintIfNeeded(state);
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.h ('k') | third_party/WebKit/Source/core/paint/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698