| Index: third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
|
| index 6a5712cd296d55d82d299592986ee6c8e244340c..02d85b35ddad78418e190f0d4d2ab6d9051ee2fb 100644
|
| --- a/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp
|
| @@ -26,8 +26,13 @@ PaintInvalidationReason TablePaintInvalidator::invalidatePaintIfNeeded() {
|
| // If any col changed background, we'll check all cells for background
|
| // changes.
|
| bool hasColChangedBackground = false;
|
| + bool visualRectChanged = m_context.oldVisualRect != m_context.newVisualRect;
|
| for (LayoutTableCol* col = m_table.firstColumn(); col;
|
| col = col->nextColumn()) {
|
| + // LayoutTableCol uses the table's localVisualRect(). Should check column
|
| + // for paint invalidation when table's visual rect changed.
|
| + if (visualRectChanged)
|
| + col->setMayNeedPaintInvalidation();
|
| // This ensures that the backgroundChangedSinceLastPaintInvalidation flag
|
| // is up-to-date.
|
| col->ensureIsReadyForPaintInvalidation();
|
|
|