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 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 if (cb->style()->position() == RelativePosition && cb->isInline(
) && !cb->isReplaced()) { | 212 if (cb->style()->position() == RelativePosition && cb->isInline(
) && !cb->isReplaced()) { |
213 cb = cb->containingBlock(); | 213 cb = cb->containingBlock(); |
214 break; | 214 break; |
215 } | 215 } |
216 cb = cb->parent(); | 216 cb = cb->parent(); |
217 } | 217 } |
218 | 218 |
219 if (cb->isRenderBlock()) | 219 if (cb->isRenderBlock()) |
220 toRenderBlock(cb)->removePositionedObjects(this); | 220 toRenderBlock(cb)->removePositionedObjects(this); |
221 } | 221 } |
| 222 |
| 223 if (containsFloats() && !isFloating() && !isPositioned() && (newStyle->p
osition() == AbsolutePosition || newStyle->position() == FixedPosition)) |
| 224 markAllDescendantsWithFloatsForLayout(); |
222 } | 225 } |
223 | 226 |
224 RenderBox::styleWillChange(diff, newStyle); | 227 RenderBox::styleWillChange(diff, newStyle); |
225 } | 228 } |
226 | 229 |
227 void RenderBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldSty
le) | 230 void RenderBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldSty
le) |
228 { | 231 { |
229 RenderBox::styleDidChange(diff, oldStyle); | 232 RenderBox::styleDidChange(diff, oldStyle); |
230 | 233 |
231 if (!isAnonymousBlock()) { | 234 if (!isAnonymousBlock()) { |
(...skipping 6150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6382 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 6385 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
6383 { | 6386 { |
6384 showRenderObject(); | 6387 showRenderObject(); |
6385 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 6388 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
6386 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 6389 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
6387 } | 6390 } |
6388 | 6391 |
6389 #endif | 6392 #endif |
6390 | 6393 |
6391 } // namespace WebCore | 6394 } // namespace WebCore |
OLD | NEW |