| Index: Source/core/rendering/RenderTable.cpp
|
| diff --git a/Source/core/rendering/RenderTable.cpp b/Source/core/rendering/RenderTable.cpp
|
| index cd5869661efc0ab8a5d172d450272b7d2a61bae0..0cf9469d3309f9408c10c02da744cf2e8e8918c8 100644
|
| --- a/Source/core/rendering/RenderTable.cpp
|
| +++ b/Source/core/rendering/RenderTable.cpp
|
| @@ -366,6 +366,9 @@ void RenderTable::layoutCaption(RenderTableCaption* caption)
|
| }
|
| caption->setLogicalLocation(LayoutPoint(caption->marginStart(), captionLogicalTop));
|
|
|
| + if (!selfNeedsLayout())
|
| + caption->setMayNeedPaintInvalidation(true);
|
| +
|
| setLogicalHeight(logicalHeight() + caption->logicalHeight() + collapsedMarginBeforeForChild(caption) + collapsedMarginAfterForChild(caption));
|
| }
|
|
|
| @@ -521,7 +524,12 @@ void RenderTable::layout()
|
| }
|
| section->setLogicalLocation(LayoutPoint(sectionLogicalLeft, logicalHeight()));
|
|
|
| + // As we may skip invalidation on the table, we need to ensure that sections are invalidated when they moved.
|
| + if (sectionMoved && !section->selfNeedsLayout())
|
| + section->setMayNeedPaintInvalidation(true);
|
| +
|
| setLogicalHeight(logicalHeight() + section->logicalHeight());
|
| +
|
| section = sectionBelow(section);
|
| }
|
|
|
|
|