Chromium Code Reviews| Index: Source/core/rendering/RenderTable.cpp |
| diff --git a/Source/core/rendering/RenderTable.cpp b/Source/core/rendering/RenderTable.cpp |
| index a5a90e380223bfb62aa2484c3ef5cabc7342914f..0d06e0e694347daef9b502e0412bd4bd9e02aff2 100644 |
| --- a/Source/core/rendering/RenderTable.cpp |
| +++ b/Source/core/rendering/RenderTable.cpp |
| @@ -393,6 +393,21 @@ void RenderTable::simplifiedNormalFlowLayout() |
| } |
| } |
| +bool RenderTable::recalcChildOverflowAfterStyleChange() |
| +{ |
| + ASSERT(childNeedsOverflowRecalcAfterStyleChange()); |
| + clearChildNeedsOverflowRecalcAfterStyleChange(); |
| + |
| + bool childrenOverflowChanged = false; |
| + for (RenderTableSection* section = topSection(); section; section = sectionBelow(section)) { |
| + if (!section->childNeedsOverflowRecalcAfterStyleChange()) |
| + continue; |
| + if (section->recalcChildOverflowAfterStyleChange()) |
| + childrenOverflowChanged = true; |
|
Julien - ping for review
2014/11/26 19:23:33
The new code is better! I would still keep this on
|
| + } |
| + return childrenOverflowChanged; |
| +} |
| + |
| void RenderTable::layout() |
| { |
| ASSERT(needsLayout()); |