Changeset 70619 in webkit
- Timestamp:
- Oct 27, 2010 1:18:48 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 deleted
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r70618 r70619 1 2010-10-27 Andy Estes <aestes@apple.com> 2 3 Reviewed by David Hyatt. 4 5 Siblings of floated elements should be cleared below the float if they 6 are too wide to fit in the containing block. 7 https://bugs.webkit.org/show_bug.cgi?id=48396 8 9 * fast/block/float/clear-element-too-wide-for-containing-block.html: Copied from LayoutTests/fast/block/float/tableshifting.html. 10 * fast/block/float/tableshifting.html: Removed. 11 * platform/mac/fast/block/float/clear-element-too-wide-for-containing-block-expected.checksum: Added. 12 * platform/mac/fast/block/float/clear-element-too-wide-for-containing-block-expected.png: Added. 13 * platform/mac/fast/block/float/clear-element-too-wide-for-containing-block-expected.txt: Added. 14 * platform/mac/fast/block/float/tableshifting-expected.checksum: Removed. 15 * platform/mac/fast/block/float/tableshifting-expected.png: Removed. 16 * platform/mac/fast/block/float/tableshifting-expected.txt: Removed. 17 1 18 2010-10-27 Csaba Osztrogonác <ossy@webkit.org> 2 19 -
trunk/LayoutTests/fast/block/float/clear-element-too-wide-for-containing-block.html
r70589 r70619 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> 2 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 3 <head> 4 <style> 4 5 5 <title>Jeffrey Zeldman Presents: The Daily Report</title> 6 7 <style> 8 9 #bravefourhundred { 10 width: 385px; 6 #container { 7 width: 385px; 11 8 } 12 9 … … 20 17 21 18 </style> 22 23 24 25 </head> 19 </head> 26 20 27 21 <body> 28 <div id=" bravefourhundred">29 <div>The yellow block should be to the right ofthe green block.</div>22 <div id="container"> 23 <div>The yellow block should be below the green block.</div> 30 24 <div class="foo"></div><img width="395" height="275" border="0"> 31 25 </div> 32 26 </body> 33 27 </html> 28 -
trunk/WebCore/ChangeLog
r70617 r70619 1 2010-10-27 Andy Estes <aestes@apple.com> 2 3 Reviewed by David Hyatt. 4 5 Siblings of floated elements should be cleared below the float if they 6 are too wide to fit in the containing block. 7 https://bugs.webkit.org/show_bug.cgi?id=48396 8 9 Test: fast/block/float/clear-element-too-wide-for-containing-block.html 10 11 WebKit did not clear elements adjacent to floats if they were wider than 12 the containing block, instead keeping them on the same line and allowing 13 them to spill out the right side of the containing block. We should 14 match the spec in this regard and clear the element below the float even 15 if it is too wide for the containing block. Doing this seems to also 16 match IE's and Firefox's behavior. 17 18 * rendering/RenderBlock.cpp: 19 (WebCore::RenderBlock::getClearDelta): Continue to compute the clear 20 delta even if the child's minimum preferred width is greater than the 21 containing block's available width. 22 1 23 2010-10-26 Rob Buis <rwlbuis@gmail.com> 2 24 -
trunk/WebCore/rendering/RenderBlock.cpp
r70482 r70619 4041 4041 int result = clearSet ? max(0, bottom - yPos) : 0; 4042 4042 if (!result && child->avoidsFloats()) { 4043 int availableWidth = availableLogicalWidth();4044 if (child->minPreferredLogicalWidth() > availableWidth)4045 return 0;4046 4047 4043 int y = yPos; 4048 4044 while (true) { 4049 4045 int widthAtY = availableLogicalWidthForLine(y, false); 4050 if (widthAtY == available Width)4046 if (widthAtY == availableLogicalWidth()) 4051 4047 return y - yPos; 4052 4048
Note: See TracChangeset
for help on using the changeset viewer.