Modified: trunk/LayoutTests/platform/mac/fast/backgrounds/background-position-parsing-expected.txt (148522 => 148523)
--- trunk/LayoutTests/platform/mac/fast/backgrounds/background-position-parsing-expected.txt 2013-04-16 17:52:12 UTC (rev 148522)
+++ trunk/LayoutTests/platform/mac/fast/backgrounds/background-position-parsing-expected.txt 2013-04-16 17:56:15 UTC (rev 148523)
@@ -1,7 +1,7 @@
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x405
- RenderBlock {HTML} at (0,0) size 800x406
+ RenderBlock {HTML} at (0,0) size 800x405
RenderBody {BODY} at (8,16) size 784x18
RenderBlock {P} at (0,0) size 784x18
RenderText {#text} at (0,0) size 500x18
@@ -33,126 +33,126 @@
RenderBlock (floating) {DIV} at (678,35) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (1,95) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (1,94) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (86,95) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (86,94) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (170,95) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (170,94) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (255,95) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (255,94) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (340,95) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (340,94) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (424,95) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (424,94) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (509,95) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (509,94) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (593,95) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (593,94) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (678,95) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (678,94) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (1,154) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (1,153) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (86,154) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (86,153) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (170,154) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (170,153) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (255,154) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (255,153) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (340,154) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (340,153) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (424,154) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (424,153) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (509,154) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (509,153) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (593,154) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (593,153) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (678,154) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (678,153) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (1,213) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (1,212) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (86,213) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (86,212) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (170,213) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (170,212) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (255,213) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (255,212) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (340,213) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (340,212) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (424,213) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (424,212) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (509,213) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (509,212) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (593,213) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (593,212) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (678,213) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (678,212) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (1,272) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (1,271) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (86,272) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (86,271) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (170,272) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (170,271) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (255,272) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (255,271) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (340,272) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (340,271) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (424,272) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (424,271) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (509,272) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (509,271) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (593,272) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (593,271) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (678,272) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (678,271) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (1,331) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (1,330) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (86,331) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (86,330) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (170,331) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (170,330) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (255,331) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (255,330) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
- RenderBlock (floating) {DIV} at (340,331) size 82x57 [border: (3px solid #000000)]
+ RenderBlock (floating) {DIV} at (340,330) size 82x57 [border: (3px solid #000000)]
RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC]
RenderBlock {DIV} at (8,8) size 59x34
Modified: trunk/Source/WebCore/rendering/RenderBlock.cpp (148522 => 148523)
--- trunk/Source/WebCore/rendering/RenderBlock.cpp 2013-04-16 17:52:12 UTC (rev 148522)
+++ trunk/Source/WebCore/rendering/RenderBlock.cpp 2013-04-16 17:56:15 UTC (rev 148523)
@@ -4285,7 +4285,7 @@
return;
// All the objects returned from the tree should be already placed.
- ASSERT(r->isPlaced() && rangesIntersect(m_renderer->pixelSnappedLogicalTopForFloat(r), m_renderer->pixelSnappedLogicalBottomForFloat(r), m_lowValue, m_highValue));
+ ASSERT(r->isPlaced() && rangesIntersect(m_renderer->logicalTopForFloat(r), m_renderer->logicalBottomForFloat(r), m_lowValue, m_highValue));
if (FloatTypeValue == FloatingObject::FloatLeft
&& m_renderer->logicalRightForFloat(r) > m_offset) {
@@ -7905,8 +7905,8 @@
inline RenderBlock::FloatingObjectInterval RenderBlock::FloatingObjects::intervalForFloatingObject(FloatingObject* floatingObject)
{
if (m_horizontalWritingMode)
- return RenderBlock::FloatingObjectInterval(floatingObject->frameRect().pixelSnappedY(), floatingObject->frameRect().pixelSnappedMaxY(), floatingObject);
- return RenderBlock::FloatingObjectInterval(floatingObject->frameRect().pixelSnappedX(), floatingObject->frameRect().pixelSnappedMaxX(), floatingObject);
+ return RenderBlock::FloatingObjectInterval(floatingObject->frameRect().y(), floatingObject->frameRect().maxY(), floatingObject);
+ return RenderBlock::FloatingObjectInterval(floatingObject->frameRect().x(), floatingObject->frameRect().maxX(), floatingObject);
}
void RenderBlock::FloatingObjects::addPlacedObject(FloatingObject* floatingObject)
@@ -8124,7 +8124,7 @@
String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::FloatingObject* floatingObject)
{
- return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->frameRect().pixelSnappedX(), floatingObject->frameRect().pixelSnappedY(), floatingObject->frameRect().pixelSnappedMaxX(), floatingObject->frameRect().pixelSnappedMaxY());
+ return String::format("%p (%ix%i %ix%i)", floatingObject, floatingObject->frameRect().x().toInt(), floatingObject->frameRect().y().toInt(), floatingObject->frameRect().maxX().toInt(), floatingObject->frameRect().maxY().toInt());
}
#endif