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) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 return; | 1738 return; |
1739 | 1739 |
1740 if (hasColumns()) | 1740 if (hasColumns()) |
1741 view()->layoutState()->clearPaginationInformation(); // Positioned objec
ts are not part of the column flow, so they don't paginate with the columns. | 1741 view()->layoutState()->clearPaginationInformation(); // Positioned objec
ts are not part of the column flow, so they don't paginate with the columns. |
1742 | 1742 |
1743 RenderBox* r; | 1743 RenderBox* r; |
1744 TrackedRendererListHashSet::iterator end = positionedDescendants->end(); | 1744 TrackedRendererListHashSet::iterator end = positionedDescendants->end(); |
1745 for (TrackedRendererListHashSet::iterator it = positionedDescendants->begin(
); it != end; ++it) { | 1745 for (TrackedRendererListHashSet::iterator it = positionedDescendants->begin(
); it != end; ++it) { |
1746 r = *it; | 1746 r = *it; |
1747 | 1747 |
| 1748 LayoutRectRecorder recorder(*r); |
| 1749 |
1748 SubtreeLayoutScope layoutScope(r); | 1750 SubtreeLayoutScope layoutScope(r); |
1749 // A fixed position element with an absolute positioned ancestor has no
way of knowing if the latter has changed position. So | 1751 // A fixed position element with an absolute positioned ancestor has no
way of knowing if the latter has changed position. So |
1750 // if this is a fixed position element, mark it for layout if it has an
abspos ancestor and needs to move with that ancestor, i.e. | 1752 // if this is a fixed position element, mark it for layout if it has an
abspos ancestor and needs to move with that ancestor, i.e. |
1751 // it has static position. | 1753 // it has static position. |
1752 markFixedPositionObjectForLayoutIfNeeded(r, layoutScope); | 1754 markFixedPositionObjectForLayoutIfNeeded(r, layoutScope); |
1753 if (fixedPositionObjectsOnly) { | 1755 if (fixedPositionObjectsOnly) { |
1754 r->layoutIfNeeded(); | 1756 r->layoutIfNeeded(); |
1755 continue; | 1757 continue; |
1756 } | 1758 } |
1757 | 1759 |
(...skipping 3260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5018 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 5020 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
5019 { | 5021 { |
5020 showRenderObject(); | 5022 showRenderObject(); |
5021 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 5023 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
5022 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 5024 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
5023 } | 5025 } |
5024 | 5026 |
5025 #endif | 5027 #endif |
5026 | 5028 |
5027 } // namespace WebCore | 5029 } // namespace WebCore |
OLD | NEW |