Commit 4b38ed82 authored by hyatt@apple.com's avatar hyatt@apple.com

WebCore:

2008-09-03  David Hyatt  <hyatt@apple.com>

        Fix for bug 18203, right floats should be allowed to overflow past the left border edge.

        Reviewed by Darin (ages ago)

        Added fast/block/float/clamped-right-float.html

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::positionNewFloats):

LayoutTests:

2008-09-03  David Hyatt  <hyatt@apple.com>

        Fix for bug 18203.

        Reviewed by Darin (ages ago).

        * fast/block/float/clamped-right-float.html: Added.
        * platform/mac/fast/block/float/clamped-right-float-expected.checksum: Added.
        * platform/mac/fast/block/float/clamped-right-float-expected.png: Added.
        * platform/mac/fast/block/float/clamped-right-float-expected.txt: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent afe62056
2008-09-03 David Hyatt <hyatt@apple.com>
Fix for bug 18203.
Reviewed by Darin (ages ago).
* fast/block/float/clamped-right-float.html: Added.
* platform/mac/fast/block/float/clamped-right-float-expected.checksum: Added.
* platform/mac/fast/block/float/clamped-right-float-expected.png: Added.
* platform/mac/fast/block/float/clamped-right-float-expected.txt: Added.
2008-09-02 David Hyatt <hyatt@apple.com>
Add support for the canvas text APIs.
......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Element floated right should have it left edge hidden outside the viewpoint</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<style type="text/css">
#container {float:right;width:5000px;height:100px;background:#6ea;text-align:right;}
</style>
</head>
<body>
<div id="container">
Element floated right with a width of 5000px.
</div>
</body>
</html>
\ No newline at end of file
6eb681b5e377163d90b77e554869fa38
\ No newline at end of file
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x108
RenderBlock {HTML} at (0,0) size 800x8
RenderBody {BODY} at (8,8) size 784x0
RenderBlock (floating) {DIV} at (-4216,0) size 5000x100 [bgcolor=#66EEAA]
RenderText {#text} at (4712,0) size 288x18
text run at (4712,0) width 288: "Element floated right with a width of 5000px."
2008-09-03 David Hyatt <hyatt@apple.com>
Fix for bug 18203, right floats should be allowed to overflow past the left border edge.
Reviewed by Darin (ages ago)
Added fast/block/float/clamped-right-float.html
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::positionNewFloats):
2008-09-02 David Hyatt <hyatt@apple.com>
Add support for canvas text drawing APIs.
......
......@@ -2322,7 +2322,6 @@ bool RenderBlock::positionNewFloats()
y += min(heightRemainingLeft, heightRemainingRight);
fx = rightRelOffset(y, ro, false, &heightRemainingRight);
}
fx = max(f->m_width, fx);
f->m_left = fx - f->m_width;
o->setPos(fx - o->marginRight() - o->width(), y + o->marginTop());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment