Chromium Code Reviews| Index: Source/core/rendering/RenderObject.cpp |
| diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
| index 951db507550fc764ab76db7c30b2935908c05678..03d5e1bf1c07ae87ececae8c063972bc06b058c9 100644 |
| --- a/Source/core/rendering/RenderObject.cpp |
| +++ b/Source/core/rendering/RenderObject.cpp |
| @@ -1543,12 +1543,12 @@ void RenderObject::repaintTreeAfterLayout(const RenderLayerModelObject& repaintC |
| if (!shouldCheckForInvalidationAfterLayout()) |
| return; |
| - clearRepaintState(); |
| - |
| for (RenderObject* child = slowFirstChild(); child; child = child->nextSibling()) { |
| if (!child->isOutOfFlowPositioned()) |
| child->repaintTreeAfterLayout(repaintContainer); |
| } |
| + |
| + clearRepaintState(); |
|
dsinclair
2014/05/20 17:37:39
This puts a dependency on the children checking th
|
| } |
| static PassRefPtr<JSONValue> jsonObjectForOldAndNewRects(const LayoutRect& oldRect, const LayoutRect& newRect) |
| @@ -1715,7 +1715,7 @@ void RenderObject::repaintOverflowIfNeeded() |
| bool RenderObject::checkForRepaint() const |
| { |
| - return !document().view()->needsFullRepaint() && everHadLayout(); |
| + return !view()->shouldDoFullRepaintAfterLayout() && everHadLayout(); |
| } |
| bool RenderObject::checkForRepaintDuringLayout() const |