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 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1798 return; | 1798 return; |
1799 | 1799 |
1800 if (hasColumns()) | 1800 if (hasColumns()) |
1801 view()->layoutState()->clearPaginationInformation(); // Positioned objec
ts are not part of the column flow, so they don't paginate with the columns. | 1801 view()->layoutState()->clearPaginationInformation(); // Positioned objec
ts are not part of the column flow, so they don't paginate with the columns. |
1802 | 1802 |
1803 RenderBox* r; | 1803 RenderBox* r; |
1804 TrackedRendererListHashSet::iterator end = positionedDescendants->end(); | 1804 TrackedRendererListHashSet::iterator end = positionedDescendants->end(); |
1805 for (TrackedRendererListHashSet::iterator it = positionedDescendants->begin(
); it != end; ++it) { | 1805 for (TrackedRendererListHashSet::iterator it = positionedDescendants->begin(
); it != end; ++it) { |
1806 r = *it; | 1806 r = *it; |
1807 | 1807 |
| 1808 LayoutRectRecorder recorder(*r); |
| 1809 |
1808 SubtreeLayoutScope layoutScope(r); | 1810 SubtreeLayoutScope layoutScope(r); |
1809 // A fixed position element with an absolute positioned ancestor has no
way of knowing if the latter has changed position. So | 1811 // A fixed position element with an absolute positioned ancestor has no
way of knowing if the latter has changed position. So |
1810 // 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. | 1812 // 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. |
1811 // it has static position. | 1813 // it has static position. |
1812 markFixedPositionObjectForLayoutIfNeeded(r, layoutScope); | 1814 markFixedPositionObjectForLayoutIfNeeded(r, layoutScope); |
1813 if (fixedPositionObjectsOnly) { | 1815 if (fixedPositionObjectsOnly) { |
1814 r->layoutIfNeeded(); | 1816 r->layoutIfNeeded(); |
1815 continue; | 1817 continue; |
1816 } | 1818 } |
1817 | 1819 |
(...skipping 3801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5619 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 5621 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
5620 { | 5622 { |
5621 showRenderObject(); | 5623 showRenderObject(); |
5622 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 5624 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
5623 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 5625 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
5624 } | 5626 } |
5625 | 5627 |
5626 #endif | 5628 #endif |
5627 | 5629 |
5628 } // namespace WebCore | 5630 } // namespace WebCore |
OLD | NEW |