Chromium Code Reviews| Index: Source/core/rendering/RenderView.cpp |
| diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp |
| index 42960837bc5481f1ba6ee1faf55608b045d45e00..498b518bef26b72a4f77f201c6a698c7f2486df4 100644 |
| --- a/Source/core/rendering/RenderView.cpp |
| +++ b/Source/core/rendering/RenderView.cpp |
| @@ -470,11 +470,10 @@ void RenderView::repaintViewRectangle(const LayoutRect& ur) const |
| // We always just invalidate the root view, since we could be an iframe that is clipped out |
| // or even invisible. |
| Element* elt = document().ownerElement(); |
|
esprehn
2014/06/06 22:41:22
rename to owner?
|
| - if (!elt) { |
| - if (hasLayer() && layer()->compositingState() == PaintsIntoOwnBacking) |
| - layer()->repainter().setBackingNeedsRepaintInRect(ur); |
| - else |
| - m_frameView->contentRectangleForPaintInvalidation(pixelSnappedIntRect(ur)); |
| + if (layer()->compositingState() == PaintsIntoOwnBacking) { |
| + layer()->repainter().setBackingNeedsRepaintInRect(ur); |
| + } else if (!elt) { |
| + m_frameView->contentRectangleForPaintInvalidation(pixelSnappedIntRect(ur)); |
| } else if (RenderBox* obj = elt->renderBox()) { |
| LayoutRect vr = viewRect(); |
| LayoutRect r = intersection(ur, vr); |