+2007-10-16 Mitz Pettel <mitz@webkit.org>
+
+ Reviewed by Dave Hyatt.
+
+ - test for http://bugs.webkit.org/show_bug.cgi?id=15296
+ REGRESSION (r19716-r19719): width not specified for <marquee> tag is causing the alignment issue.
+
+ * fast/block/float/marquee-shrink-to-avoid-floats.html: Added.
+ * platform/mac/fast/block: Added.
+ * platform/mac/fast/block/float: Added.
+ * platform/mac/fast/block/float/marquee-shrink-to-avoid-floats-expected.checksum: Added.
+ * platform/mac/fast/block/float/marquee-shrink-to-avoid-floats-expected.png: Added.
+ * platform/mac/fast/block/float/marquee-shrink-to-avoid-floats-expected.txt: Added.
+
2007-10-16 Beth Dakin <bdakin@apple.com>
Reviewed by Darin.
--- /dev/null
+<p>
+ Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=15296">http://bugs.webkit.org/show_bug.cgi?id=15296</a>
+ REGRESSION (r19716-r19719): width not specified for <marquee> tag is causing the alignment issue</i>.
+</p>
+<p>
+ This should be a green 100×100px square:
+</p>
+<div style="background-color: red; width: 100px;">
+ <div style="float: left; width: 50px; height: 100px; background-color: green"></div>
+ <div>
+ <marquee style="height: 100px; background-color: green;"></marquee>
+ </div>
+</div>
--- /dev/null
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (8,8) size 784x584
+ RenderBlock {P} at (0,0) size 784x36
+ RenderText {#text} at (0,0) size 53x18
+ text run at (0,0) width 53: "Test for "
+ RenderInline {I} at (0,0) size 714x36
+ RenderInline {A} at (0,0) size 301x18 [color=#0000EE]
+ RenderText {#text} at (53,0) size 301x18
+ text run at (53,0) width 301: "http://bugs.webkit.org/show_bug.cgi?id=15296"
+ RenderText {#text} at (354,0) size 714x36
+ text run at (354,0) width 4: " "
+ text run at (358,0) width 356: "REGRESSION (r19716-r19719): width not specified for"
+ text run at (0,18) width 294: "<marquee> tag is causing the alignment issue"
+ RenderText {#text} at (294,18) size 4x18
+ text run at (294,18) width 4: "."
+ RenderBlock {P} at (0,52) size 784x18
+ RenderText {#text} at (0,0) size 269x18
+ text run at (0,0) width 269: "This should be a green 100\x{D7}100px square:"
+ RenderBlock {DIV} at (0,86) size 100x100 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (0,0) size 50x100 [bgcolor=#008000]
+ RenderBlock {DIV} at (0,0) size 100x100
+ RenderText {#text} at (0,0) size 0x0
+layer at (58,94) size 50x100 scrollX -50
+ RenderBlock {MARQUEE} at (50,0) size 50x100 [bgcolor=#008000]
+2007-10-16 Mitz Pettel <mitz@webkit.org>
+
+ Reviewed by Dave Hyatt.
+
+ - fix http://bugs.webkit.org/show_bug.cgi?id=15296
+ REGRESSION (r19716-r19719): width not specified for <marquee> tag is causing the alignment issue.
+
+ Test: fast/block/float/marquee-shrink-to-avoid-floats.html
+
+ * rendering/RenderObject.cpp:
+ (WebCore::RenderObject::shrinkToAvoidFloats): Changed to return 'true' for <marquee>s with auto width.
+
2007-10-16 Beth Dakin <bdakin@apple.com>
Reviewed by Darin.
// FIXME: Technically we should be able to shrink replaced elements on a line, but this is difficult to accomplish, since this
// involves doing a relayout during findNextLineBreak and somehow overriding the containingBlockWidth method to return the
// current remaining width on a line.
- if (isInline() || !avoidsFloats())
+ if (isInline() && !isHTMLMarquee() || !avoidsFloats())
return false;
// All auto-width objects that avoid floats should always use lineWidth.