OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 // ASSERT(&newRepaintContainer == containerForRepaint()); | 1567 // ASSERT(&newRepaintContainer == containerForRepaint()); |
1568 | 1568 |
1569 const LayoutRect oldRepaintRect = previousRepaintRect(); | 1569 const LayoutRect oldRepaintRect = previousRepaintRect(); |
1570 const LayoutPoint oldPositionFromRepaintContainer = previousPositionFromRepa
intContainer(); | 1570 const LayoutPoint oldPositionFromRepaintContainer = previousPositionFromRepa
intContainer(); |
1571 setPreviousRepaintRect(clippedOverflowRectForRepaint(&newRepaintContainer)); | 1571 setPreviousRepaintRect(clippedOverflowRectForRepaint(&newRepaintContainer)); |
1572 setPreviousPositionFromRepaintContainer(positionFromRepaintContainer(&newRep
aintContainer)); | 1572 setPreviousPositionFromRepaintContainer(positionFromRepaintContainer(&newRep
aintContainer)); |
1573 | 1573 |
1574 // If we are set to do a full repaint that means the RenderView will be | 1574 // If we are set to do a full repaint that means the RenderView will be |
1575 // invalidated. We can then skip issuing of invalidations for the child | 1575 // invalidated. We can then skip issuing of invalidations for the child |
1576 // renderers as they'll be covered by the RenderView. | 1576 // renderers as they'll be covered by the RenderView. |
1577 if (view()->doingFullRepaint() && this != view()) { | 1577 if (view()->shouldDoFullRepaintAfterLayout() && this != view()) { |
1578 LayoutStateMaintainer statePusher(*this, isTableRow() ? LayoutSize() : l
ocationOffset()); | 1578 LayoutStateMaintainer statePusher(*this, isTableRow() ? LayoutSize() : l
ocationOffset()); |
1579 RenderObject::repaintTreeAfterLayout(newRepaintContainer); | 1579 RenderObject::repaintTreeAfterLayout(newRepaintContainer); |
1580 return; | 1580 return; |
1581 } | 1581 } |
1582 | 1582 |
1583 if ((onlyNeededPositionedMovementLayout() && compositingState() != PaintsInt
oOwnBacking) | 1583 if ((onlyNeededPositionedMovementLayout() && compositingState() != PaintsInt
oOwnBacking) |
1584 || (shouldDoFullRepaintIfSelfPaintingLayer() | 1584 || (shouldDoFullRepaintIfSelfPaintingLayer() |
1585 && hasLayer() | 1585 && hasLayer() |
1586 && layer()->isSelfPaintingLayer())) { | 1586 && layer()->isSelfPaintingLayer())) { |
1587 setShouldDoFullRepaintAfterLayout(true); | 1587 setShouldDoFullRepaintAfterLayout(true); |
(...skipping 3099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4687 return 0; | 4687 return 0; |
4688 | 4688 |
4689 if (!layoutState && !flowThreadContainingBlock()) | 4689 if (!layoutState && !flowThreadContainingBlock()) |
4690 return 0; | 4690 return 0; |
4691 | 4691 |
4692 RenderBlock* containerBlock = containingBlock(); | 4692 RenderBlock* containerBlock = containingBlock(); |
4693 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); | 4693 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); |
4694 } | 4694 } |
4695 | 4695 |
4696 } // namespace WebCore | 4696 } // namespace WebCore |
OLD | NEW |