Changeset 148523 in webkit
- Timestamp:
- Apr 16, 2013 10:56:15 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r148522 r148523 1 2013-04-16 Robert Hogan <robert@webkit.org> 2 3 Float at exact multiple of line-height affects too many lines 4 https://bugs.webkit.org/show_bug.cgi?id=112744 5 6 Reviewed by David Hyatt. 7 8 * fast/block/float/float-with-fractional-height-expected.html: Added. 9 * fast/block/float/float-with-fractional-height-vertical-lr-expected.html: Added. 10 * fast/block/float/float-with-fractional-height-vertical-lr.html: Added. 11 * fast/block/float/float-with-fractional-height.html: Added. 12 * platform/mac/fast/backgrounds/background-position-parsing-expected.txt: 13 1 14 2013-04-16 Chris Fleizach <cfleizach@apple.com> 2 15 -
trunk/LayoutTests/platform/mac/fast/backgrounds/background-position-parsing-expected.txt
r133351 r148523 2 2 RenderView at (0,0) size 800x600 3 3 layer at (0,0) size 800x405 4 RenderBlock {HTML} at (0,0) size 800x40 64 RenderBlock {HTML} at (0,0) size 800x405 5 5 RenderBody {BODY} at (8,16) size 784x18 6 6 RenderBlock {P} at (0,0) size 784x18 … … 34 34 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 35 35 RenderBlock {DIV} at (8,8) size 59x34 36 RenderBlock (floating) {DIV} at (1,9 5) size 82x57 [border: (3px solid #000000)]36 RenderBlock (floating) {DIV} at (1,94) size 82x57 [border: (3px solid #000000)] 37 37 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 38 38 RenderBlock {DIV} at (8,8) size 59x34 39 RenderBlock (floating) {DIV} at (86,9 5) size 82x57 [border: (3px solid #000000)]39 RenderBlock (floating) {DIV} at (86,94) size 82x57 [border: (3px solid #000000)] 40 40 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 41 41 RenderBlock {DIV} at (8,8) size 59x34 42 RenderBlock (floating) {DIV} at (170,9 5) size 82x57 [border: (3px solid #000000)]42 RenderBlock (floating) {DIV} at (170,94) size 82x57 [border: (3px solid #000000)] 43 43 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 44 44 RenderBlock {DIV} at (8,8) size 59x34 45 RenderBlock (floating) {DIV} at (255,9 5) size 82x57 [border: (3px solid #000000)]45 RenderBlock (floating) {DIV} at (255,94) size 82x57 [border: (3px solid #000000)] 46 46 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 47 47 RenderBlock {DIV} at (8,8) size 59x34 48 RenderBlock (floating) {DIV} at (340,9 5) size 82x57 [border: (3px solid #000000)]48 RenderBlock (floating) {DIV} at (340,94) size 82x57 [border: (3px solid #000000)] 49 49 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 50 50 RenderBlock {DIV} at (8,8) size 59x34 51 RenderBlock (floating) {DIV} at (424,9 5) size 82x57 [border: (3px solid #000000)]51 RenderBlock (floating) {DIV} at (424,94) size 82x57 [border: (3px solid #000000)] 52 52 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 53 53 RenderBlock {DIV} at (8,8) size 59x34 54 RenderBlock (floating) {DIV} at (509,9 5) size 82x57 [border: (3px solid #000000)]54 RenderBlock (floating) {DIV} at (509,94) size 82x57 [border: (3px solid #000000)] 55 55 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 56 56 RenderBlock {DIV} at (8,8) size 59x34 57 RenderBlock (floating) {DIV} at (593,9 5) size 82x57 [border: (3px solid #000000)]57 RenderBlock (floating) {DIV} at (593,94) size 82x57 [border: (3px solid #000000)] 58 58 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 59 59 RenderBlock {DIV} at (8,8) size 59x34 60 RenderBlock (floating) {DIV} at (678,9 5) size 82x57 [border: (3px solid #000000)]60 RenderBlock (floating) {DIV} at (678,94) size 82x57 [border: (3px solid #000000)] 61 61 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 62 62 RenderBlock {DIV} at (8,8) size 59x34 63 RenderBlock (floating) {DIV} at (1,15 4) size 82x57 [border: (3px solid #000000)]63 RenderBlock (floating) {DIV} at (1,153) size 82x57 [border: (3px solid #000000)] 64 64 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 65 65 RenderBlock {DIV} at (8,8) size 59x34 66 RenderBlock (floating) {DIV} at (86,15 4) size 82x57 [border: (3px solid #000000)]66 RenderBlock (floating) {DIV} at (86,153) size 82x57 [border: (3px solid #000000)] 67 67 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 68 68 RenderBlock {DIV} at (8,8) size 59x34 69 RenderBlock (floating) {DIV} at (170,15 4) size 82x57 [border: (3px solid #000000)]69 RenderBlock (floating) {DIV} at (170,153) size 82x57 [border: (3px solid #000000)] 70 70 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 71 71 RenderBlock {DIV} at (8,8) size 59x34 72 RenderBlock (floating) {DIV} at (255,15 4) size 82x57 [border: (3px solid #000000)]72 RenderBlock (floating) {DIV} at (255,153) size 82x57 [border: (3px solid #000000)] 73 73 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 74 74 RenderBlock {DIV} at (8,8) size 59x34 75 RenderBlock (floating) {DIV} at (340,15 4) size 82x57 [border: (3px solid #000000)]75 RenderBlock (floating) {DIV} at (340,153) size 82x57 [border: (3px solid #000000)] 76 76 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 77 77 RenderBlock {DIV} at (8,8) size 59x34 78 RenderBlock (floating) {DIV} at (424,15 4) size 82x57 [border: (3px solid #000000)]78 RenderBlock (floating) {DIV} at (424,153) size 82x57 [border: (3px solid #000000)] 79 79 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 80 80 RenderBlock {DIV} at (8,8) size 59x34 81 RenderBlock (floating) {DIV} at (509,15 4) size 82x57 [border: (3px solid #000000)]81 RenderBlock (floating) {DIV} at (509,153) size 82x57 [border: (3px solid #000000)] 82 82 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 83 83 RenderBlock {DIV} at (8,8) size 59x34 84 RenderBlock (floating) {DIV} at (593,15 4) size 82x57 [border: (3px solid #000000)]84 RenderBlock (floating) {DIV} at (593,153) size 82x57 [border: (3px solid #000000)] 85 85 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 86 86 RenderBlock {DIV} at (8,8) size 59x34 87 RenderBlock (floating) {DIV} at (678,15 4) size 82x57 [border: (3px solid #000000)]87 RenderBlock (floating) {DIV} at (678,153) size 82x57 [border: (3px solid #000000)] 88 88 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 89 89 RenderBlock {DIV} at (8,8) size 59x34 90 RenderBlock (floating) {DIV} at (1,21 3) size 82x57 [border: (3px solid #000000)]90 RenderBlock (floating) {DIV} at (1,212) size 82x57 [border: (3px solid #000000)] 91 91 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 92 92 RenderBlock {DIV} at (8,8) size 59x34 93 RenderBlock (floating) {DIV} at (86,21 3) size 82x57 [border: (3px solid #000000)]93 RenderBlock (floating) {DIV} at (86,212) size 82x57 [border: (3px solid #000000)] 94 94 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 95 95 RenderBlock {DIV} at (8,8) size 59x34 96 RenderBlock (floating) {DIV} at (170,21 3) size 82x57 [border: (3px solid #000000)]96 RenderBlock (floating) {DIV} at (170,212) size 82x57 [border: (3px solid #000000)] 97 97 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 98 98 RenderBlock {DIV} at (8,8) size 59x34 99 RenderBlock (floating) {DIV} at (255,21 3) size 82x57 [border: (3px solid #000000)]99 RenderBlock (floating) {DIV} at (255,212) size 82x57 [border: (3px solid #000000)] 100 100 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 101 101 RenderBlock {DIV} at (8,8) size 59x34 102 RenderBlock (floating) {DIV} at (340,21 3) size 82x57 [border: (3px solid #000000)]102 RenderBlock (floating) {DIV} at (340,212) size 82x57 [border: (3px solid #000000)] 103 103 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 104 104 RenderBlock {DIV} at (8,8) size 59x34 105 RenderBlock (floating) {DIV} at (424,21 3) size 82x57 [border: (3px solid #000000)]105 RenderBlock (floating) {DIV} at (424,212) size 82x57 [border: (3px solid #000000)] 106 106 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 107 107 RenderBlock {DIV} at (8,8) size 59x34 108 RenderBlock (floating) {DIV} at (509,21 3) size 82x57 [border: (3px solid #000000)]108 RenderBlock (floating) {DIV} at (509,212) size 82x57 [border: (3px solid #000000)] 109 109 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 110 110 RenderBlock {DIV} at (8,8) size 59x34 111 RenderBlock (floating) {DIV} at (593,21 3) size 82x57 [border: (3px solid #000000)]111 RenderBlock (floating) {DIV} at (593,212) size 82x57 [border: (3px solid #000000)] 112 112 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 113 113 RenderBlock {DIV} at (8,8) size 59x34 114 RenderBlock (floating) {DIV} at (678,21 3) size 82x57 [border: (3px solid #000000)]114 RenderBlock (floating) {DIV} at (678,212) size 82x57 [border: (3px solid #000000)] 115 115 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 116 116 RenderBlock {DIV} at (8,8) size 59x34 117 RenderBlock (floating) {DIV} at (1,27 2) size 82x57 [border: (3px solid #000000)]117 RenderBlock (floating) {DIV} at (1,271) size 82x57 [border: (3px solid #000000)] 118 118 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 119 119 RenderBlock {DIV} at (8,8) size 59x34 120 RenderBlock (floating) {DIV} at (86,27 2) size 82x57 [border: (3px solid #000000)]120 RenderBlock (floating) {DIV} at (86,271) size 82x57 [border: (3px solid #000000)] 121 121 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 122 122 RenderBlock {DIV} at (8,8) size 59x34 123 RenderBlock (floating) {DIV} at (170,27 2) size 82x57 [border: (3px solid #000000)]123 RenderBlock (floating) {DIV} at (170,271) size 82x57 [border: (3px solid #000000)] 124 124 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 125 125 RenderBlock {DIV} at (8,8) size 59x34 126 RenderBlock (floating) {DIV} at (255,27 2) size 82x57 [border: (3px solid #000000)]126 RenderBlock (floating) {DIV} at (255,271) size 82x57 [border: (3px solid #000000)] 127 127 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 128 128 RenderBlock {DIV} at (8,8) size 59x34 129 RenderBlock (floating) {DIV} at (340,27 2) size 82x57 [border: (3px solid #000000)]129 RenderBlock (floating) {DIV} at (340,271) size 82x57 [border: (3px solid #000000)] 130 130 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 131 131 RenderBlock {DIV} at (8,8) size 59x34 132 RenderBlock (floating) {DIV} at (424,27 2) size 82x57 [border: (3px solid #000000)]132 RenderBlock (floating) {DIV} at (424,271) size 82x57 [border: (3px solid #000000)] 133 133 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 134 134 RenderBlock {DIV} at (8,8) size 59x34 135 RenderBlock (floating) {DIV} at (509,27 2) size 82x57 [border: (3px solid #000000)]135 RenderBlock (floating) {DIV} at (509,271) size 82x57 [border: (3px solid #000000)] 136 136 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 137 137 RenderBlock {DIV} at (8,8) size 59x34 138 RenderBlock (floating) {DIV} at (593,27 2) size 82x57 [border: (3px solid #000000)]138 RenderBlock (floating) {DIV} at (593,271) size 82x57 [border: (3px solid #000000)] 139 139 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 140 140 RenderBlock {DIV} at (8,8) size 59x34 141 RenderBlock (floating) {DIV} at (678,27 2) size 82x57 [border: (3px solid #000000)]141 RenderBlock (floating) {DIV} at (678,271) size 82x57 [border: (3px solid #000000)] 142 142 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 143 143 RenderBlock {DIV} at (8,8) size 59x34 144 RenderBlock (floating) {DIV} at (1,33 1) size 82x57 [border: (3px solid #000000)]144 RenderBlock (floating) {DIV} at (1,330) size 82x57 [border: (3px solid #000000)] 145 145 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 146 146 RenderBlock {DIV} at (8,8) size 59x34 147 RenderBlock (floating) {DIV} at (86,33 1) size 82x57 [border: (3px solid #000000)]147 RenderBlock (floating) {DIV} at (86,330) size 82x57 [border: (3px solid #000000)] 148 148 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 149 149 RenderBlock {DIV} at (8,8) size 59x34 150 RenderBlock (floating) {DIV} at (170,33 1) size 82x57 [border: (3px solid #000000)]150 RenderBlock (floating) {DIV} at (170,330) size 82x57 [border: (3px solid #000000)] 151 151 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 152 152 RenderBlock {DIV} at (8,8) size 59x34 153 RenderBlock (floating) {DIV} at (255,33 1) size 82x57 [border: (3px solid #000000)]153 RenderBlock (floating) {DIV} at (255,330) size 82x57 [border: (3px solid #000000)] 154 154 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 155 155 RenderBlock {DIV} at (8,8) size 59x34 156 RenderBlock (floating) {DIV} at (340,33 1) size 82x57 [border: (3px solid #000000)]156 RenderBlock (floating) {DIV} at (340,330) size 82x57 [border: (3px solid #000000)] 157 157 RenderBlock {DIV} at (3,3) size 75x50 [bgcolor=#FFFFCC] 158 158 RenderBlock {DIV} at (8,8) size 59x34 -
trunk/Source/WebCore/ChangeLog
r148522 r148523 1 2013-04-16 Robert Hogan <robert@webkit.org> 2 3 Float at exact multiple of line-height affects too many lines 4 https://bugs.webkit.org/show_bug.cgi?id=112744 5 6 Reviewed by David Hyatt. 7 8 Tests: fast/block/float/float-with-fractional-height-vertical-lr.html 9 fast/block/float/float-with-fractional-height.html 10 11 When adding floats to the interval tree used for testing floats' overlap with lineboxes 12 truncate the dimensions of the float rather than rounding them. This matches the 13 treatment of linebox dimensions so ensures the test for overlap is comparing like 14 with like. 15 16 * rendering/RenderBlock.cpp: 17 (WebCore::::collectIfNeeded): 18 (WebCore::RenderBlock::FloatingObjects::intervalForFloatingObject): 19 (WebCore::::string): 20 1 21 2013-04-16 Chris Fleizach <cfleizach@apple.com> 2 22 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r148258 r148523 4286 4286 4287 4287 // All the objects returned from the tree should be already placed. 4288 ASSERT(r->isPlaced() && rangesIntersect(m_renderer-> pixelSnappedLogicalTopForFloat(r), m_renderer->pixelSnappedLogicalBottomForFloat(r), m_lowValue, m_highValue));4288 ASSERT(r->isPlaced() && rangesIntersect(m_renderer->logicalTopForFloat(r), m_renderer->logicalBottomForFloat(r), m_lowValue, m_highValue)); 4289 4289 4290 4290 if (FloatTypeValue == FloatingObject::FloatLeft … … 7906 7906 { 7907 7907 if (m_horizontalWritingMode) 7908 return RenderBlock::FloatingObjectInterval(floatingObject->frameRect(). pixelSnappedY(), floatingObject->frameRect().pixelSnappedMaxY(), floatingObject);7909 return RenderBlock::FloatingObjectInterval(floatingObject->frameRect(). pixelSnappedX(), floatingObject->frameRect().pixelSnappedMaxX(), floatingObject);7908 return RenderBlock::FloatingObjectInterval(floatingObject->frameRect().y(), floatingObject->frameRect().maxY(), floatingObject); 7909 return RenderBlock::FloatingObjectInterval(floatingObject->frameRect().x(), floatingObject->frameRect().maxX(), floatingObject); 7910 7910 } 7911 7911 … … 8125 8125 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::FloatingObject* floatingObject) 8126 8126 { 8127 return String::format("%p (% dx%d %dx%d)", floatingObject, floatingObject->frameRect().pixelSnappedX(), floatingObject->frameRect().pixelSnappedY(), floatingObject->frameRect().pixelSnappedMaxX(), floatingObject->frameRect().pixelSnappedMaxY());8127 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()); 8128 8128 } 8129 8129
Note: See TracChangeset
for help on using the changeset viewer.