Changeset 30551 in webkit
- Timestamp:
- Feb 24, 2008 10:48:27 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r30549 r30551 1 2008-02-24 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Darin Adler. 4 5 - test float positioning when a float that does not fit on the line is 6 followed by a float that does 7 8 * fast/block/float/narrow-after-wide.html: Added. 9 * platform/mac/fast/block/float/narrow-after-wide-expected.checksum: Added. 10 * platform/mac/fast/block/float/narrow-after-wide-expected.png: Added. 11 * platform/mac/fast/block/float/narrow-after-wide-expected.txt: Added. 12 1 13 2008-02-24 Darin Adler <darin@apple.com> 2 14 -
trunk/WebCore/ChangeLog
r30549 r30551 1 2008-02-24 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Darin Adler. 4 5 - fix float positioning when a float that does not fit on the line is 6 followed by a float that does 7 8 Test: fast/block/float/narrow-after-wide.html 9 10 * rendering/bidi.cpp: 11 (WebCore::RenderBlock::findNextLineBreak): Changed to not position any 12 more floats on the line once a float that does not fit is encountered. 13 That float should be pushed to the next line, and so should all floats 14 that follow, regardless of whether they can fit on the current line. 15 1 16 2008-02-24 Darin Adler <darin@apple.com> 2 17 -
trunk/WebCore/rendering/bidi.cpp
r30530 r30551 1408 1408 1409 1409 bool autoWrapWasEverTrueOnLine = false; 1410 bool floatsFitOnLine = true; 1410 1411 1411 1412 // Firefox and Opera will allow a table cell to grow to fit an image inside it under 1412 // very specific cir ucumstances (in order to match common WinIE renderings).1413 // very specific circumstances (in order to match common WinIE renderings). 1413 1414 // Not supporting the quirk has caused us to mis-render some real sites. (See Bugzilla 10517.) 1414 1415 bool allowImagesToBreak = !style()->htmlHacks() || !isTableCell() || !style()->width().isIntrinsicOrAuto(); … … 1464 1465 // If it does, position it now, otherwise, position 1465 1466 // it after moving to next line (in newLine() func) 1466 if ( o->width() + o->marginLeft() + o->marginRight() + w + tmpW <= width) {1467 if (floatsFitOnLine && o->width() + o->marginLeft() + o->marginRight() + w + tmpW <= width) { 1467 1468 positionNewFloats(); 1468 1469 width = lineWidth(m_height); 1469 } 1470 } else 1471 floatsFitOnLine = false; 1470 1472 } else if (o->isPositioned()) { 1471 1473 // If our original display wasn't an inline type, then we can
Note: See TracChangeset
for help on using the changeset viewer.