| Index: third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| index a9babf604e45a0e610eaf2e501aab4be93fc2b45..7c9b6d64fa861c825546e3a1dac926050a29bc55 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| @@ -418,6 +418,12 @@ bool LayoutTable::recalcChildOverflowAfterStyleChange()
|
| {
|
| ASSERT(childNeedsOverflowRecalcAfterStyleChange());
|
| clearChildNeedsOverflowRecalcAfterStyleChange();
|
| +
|
| + // If the table needs layout the sections we keep pointers to may have gone away and
|
| + // overflow will get recalculated anyway so return early.
|
| + if (needsLayout())
|
| + return false;
|
| +
|
| bool childrenOverflowChanged = false;
|
| for (LayoutTableSection* section = topSection(); section; section = sectionBelow(section)) {
|
| if (!section->childNeedsOverflowRecalcAfterStyleChange())
|
|
|