| Index: third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
|
| index 8756306ee433056fc3d6e475a40672de6e7f1741..9982e8a03fa82f724ad7bf3b25c33e0bfe9c0ef2 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
|
| @@ -214,8 +214,11 @@
|
| context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds();
|
| }
|
|
|
| - if (object.isTable() && toLayoutTable(object).hasCollapsedBorders())
|
| - context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds();
|
| + if (object.isTable()) {
|
| + const LayoutTable& table = toLayoutTable(object);
|
| + if (table.collapseBorders() && !table.collapsedBorders().isEmpty())
|
| + context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds();
|
| + }
|
| }
|
|
|
| namespace {
|
|
|