Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
| index b50666e149cafa8f7a238acd015a60bf75c3d3ca..bee3de489613f90e3875eda357662fe173885ee8 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
| @@ -748,23 +748,13 @@ static inline bool objectIsRelayoutBoundary(const LayoutObject* object) |
| return true; |
| } |
| -void LayoutObject::markContainerChainForLayout(bool scheduleRelayout) |
| -{ |
| - markContainerChainForLayout(scheduleRelayout, nullptr); |
| -} |
| - |
| -void LayoutObject::markContainerChainForLayout(SubtreeLayoutScope* layouter) |
| -{ |
| - // When we have a layouter, it means that we're in layout and we're marking |
| - // a descendant as needing layout with the intention of visiting it during |
| - // this layout. We shouldn't be scheduling it to be laid out later. |
| - markContainerChainForLayout(!layouter, layouter); |
| -} |
| - |
| void LayoutObject::markContainerChainForLayout(bool scheduleRelayout, SubtreeLayoutScope* layouter) |
| { |
| ASSERT(!isSetNeedsLayoutForbidden()); |
| ASSERT(!layouter || this != layouter->root()); |
| + // When we have a layouter, it means that we're in layout and we're marking |
| + // a descendant as needing layout with the intention of visiting it during |
| + // this layout. We shouldn't be scheduling it to be laid out later. |
| ASSERT(!scheduleRelayout || !layouter); |
|
kojii
2016/04/18 06:32:28
Should we make this RELEASE_ASSERT()?
cbiesinger
2016/04/18 15:53:46
I don't really see value in that. The more interes
kojii
2016/04/19 06:39:08
It doesn't always crash, bug 600998 was unable to
|
| LayoutObject* object = container(); |