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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 RenderBlock* block = containingBlock(); | 448 RenderBlock* block = containingBlock(); |
449 | 449 |
450 // Delete our line boxes before we do the inline split into continuations. | 450 // Delete our line boxes before we do the inline split into continuations. |
451 block->deleteLineBoxTree(); | 451 block->deleteLineBoxTree(); |
452 | 452 |
453 bool madeNewBeforeBlock = false; | 453 bool madeNewBeforeBlock = false; |
454 if (block->isAnonymousBlock() && (!block->parent() || !block->parent()->crea
tesAnonymousWrapper())) { | 454 if (block->isAnonymousBlock() && (!block->parent() || !block->parent()->crea
tesAnonymousWrapper())) { |
455 // We can reuse this block and make it the preBlock of the next continua
tion. | 455 // We can reuse this block and make it the preBlock of the next continua
tion. |
456 pre = block; | 456 pre = block; |
457 pre->removePositionedObjects(0); | 457 pre->removePositionedObjects(0); |
| 458 pre->removeFloatingObjects(); |
458 block = block->containingBlock(); | 459 block = block->containingBlock(); |
459 } else { | 460 } else { |
460 // No anonymous block available for use. Make one. | 461 // No anonymous block available for use. Make one. |
461 pre = block->createAnonymousBlock(); | 462 pre = block->createAnonymousBlock(); |
462 madeNewBeforeBlock = true; | 463 madeNewBeforeBlock = true; |
463 } | 464 } |
464 | 465 |
465 RenderBlock* post = toRenderBlock(pre->createAnonymousBoxWithSameTypeAs(bloc
k)); | 466 RenderBlock* post = toRenderBlock(pre->createAnonymousBoxWithSameTypeAs(bloc
k)); |
466 | 467 |
467 RenderObject* boxFirst = madeNewBeforeBlock ? block->firstChild() : pre->nex
tSibling(); | 468 RenderObject* boxFirst = madeNewBeforeBlock ? block->firstChild() : pre->nex
tSibling(); |
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1591 FloatPoint absPos = container->localToAbsolute(); | 1592 FloatPoint absPos = container->localToAbsolute(); |
1592 region.bounds.setX(absPos.x() + region.bounds.x()); | 1593 region.bounds.setX(absPos.x() + region.bounds.x()); |
1593 region.bounds.setY(absPos.y() + region.bounds.y()); | 1594 region.bounds.setY(absPos.y() + region.bounds.y()); |
1594 | 1595 |
1595 regions.append(region); | 1596 regions.append(region); |
1596 #endif | 1597 #endif |
1597 } | 1598 } |
1598 #endif | 1599 #endif |
1599 | 1600 |
1600 } // namespace WebCore | 1601 } // namespace WebCore |
OLD | NEW |