Reviewed by Brady Eidson.
- fix http://bugs.webkit.org/show_bug.cgi?id=15877
REGRESSION: r27486 caused a layout regression at my bank's website
Test: fast/block/float/overhanging-after-height-decrease-offsets.html
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlock):
LayoutTests:
Reviewed by Brady Eidson.
- test for http://bugs.webkit.org/show_bug.cgi?id=15877
REGRESSION: r27486 caused a layout regression at my bank's website
* fast/block/float/overhanging-after-height-decrease-offsets.html: Added.
* platform/mac-leopard/fast/block/float/overhanging-after-height-decrease-offsets-expected.checksum: Added.
* platform/mac-leopard/fast/block/float/overhanging-after-height-decrease-offsets-expected.png: Added.
* platform/mac/fast/block/float/overhanging-after-height-decrease-offsets-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27504
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-07 Dan Bernstein <mitz@apple.com>
+
+ Reviewed by Brady Eidson.
+
+ - test for http://bugs.webkit.org/show_bug.cgi?id=15877
+ REGRESSION: r27486 caused a layout regression at my bank's website
+
+ * fast/block/float/overhanging-after-height-decrease-offsets.html: Added.
+ * platform/mac-leopard/fast/block/float/overhanging-after-height-decrease-offsets-expected.checksum: Added.
+ * platform/mac-leopard/fast/block/float/overhanging-after-height-decrease-offsets-expected.png: Added.
+ * platform/mac/fast/block/float/overhanging-after-height-decrease-offsets-expected.txt: Added.
+
2007-11-06 Adam Roben <aroben@apple.com>
Move a Mac-specific test to platform/mac
--- /dev/null
+<div style="height: 50px;">
+ <div style="margin-left: 150px;">
+ <div style="height: 100px; float: left; width: 100px; background-color: green;"></div>
+ <div style="height: 100px; width: 100px; background-color: red;"></div>
+ </div>
+</div>
--- /dev/null
+11ce08b9cf1e9539138f5d8e4efd8f64
\ No newline at end of file
--- /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 {DIV} at (0,0) size 784x50
+ RenderBlock {DIV} at (150,0) size 634x100
+ RenderBlock (floating) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+2007-11-07 Dan Bernstein <mitz@apple.com>
+
+ Reviewed by Brady Eidson.
+
+ - fix http://bugs.webkit.org/show_bug.cgi?id=15877
+ REGRESSION: r27486 caused a layout regression at my bank's website
+
+ Test: fast/block/float/overhanging-after-height-decrease-offsets.html
+
+ * rendering/RenderBlock.cpp:
+ (WebCore::RenderBlock::layoutBlock):
+
2007-11-06 Beth Dakin <bdakin@apple.com>
Reviewed by Sam.
if (child->isBlockFlow() && !child->isFloatingOrPositioned()) {
RenderBlock* block = static_cast<RenderBlock*>(child);
if (block->floatBottom() + block->yPos() > m_height)
- addOverhangingFloats(block, block->xPos(), block->yPos());
+ addOverhangingFloats(block, -block->xPos(), -block->yPos());
}
}
}