Changeset 154702 in webkit
- Timestamp:
- Aug 27, 2013 12:21:00 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r154698 r154702 1 2013-08-27 Robert Hogan <robert@webkit.org> 2 3 cell width / offsetTop incorrect 4 https://bugs.webkit.org/show_bug.cgi?id=11582 5 6 Reviewed by David Hyatt. 7 8 * fast/dom/Element/offsetTop-table-cell-expected.txt: 9 * fast/dom/Element/offsetTop-table-cell.html: 10 * fast/table/offset-top-includes-border-expected.txt: Added. 11 * fast/table/offset-top-includes-border.html: Added. 12 * platform/mac/editing/selection/5057506-2-expected.txt: 13 * platform/mac/editing/selection/5057506-expected.txt: 14 * platform/qt/editing/selection/5057506-2-expected.txt: 15 * platform/qt/editing/selection/5057506-expected.txt: 16 1 17 2013-08-27 Renata Hodovan <reni@webkit.org> 2 18 -
trunk/LayoutTests/fast/dom/Element/offsetTop-table-cell-expected.txt
r40552 r154702 3 3 Table 1 row 2 top offset:50 4 4 Table 1 cell 2 top offset:50 5 Table 2 row 1 top offset: 06 Table 2 cell 1 top offset: 07 Table 2 cell 2 top offset: 08 Table 2 cell 3 top offset: 05 Table 2 row 1 top offset:1 6 Table 2 cell 1 top offset:1 7 Table 2 cell 2 top offset:1 8 Table 2 cell 3 top offset:1 9 9 Table 3 cell 1 top offset:0 10 10 Table 4 div 1 top offset:50 -
trunk/LayoutTests/fast/dom/Element/offsetTop-table-cell.html
r120792 r154702 33 33 console.innerText += "\n"; 34 34 console.innerText += "Test result: " 35 console.innerText += (rowOffset == 50 && cellOffset == 50 && tr1Offset == 035 console.innerText += (rowOffset == 50 && cellOffset == 50 && tr1Offset == 1 36 36 && tr1Offset == td2Offset && tr1Offset == td3Offset && td4Offset == 0 && div5Offset == 50 ? "PASS" : "FAIL"); 37 37 } -
trunk/LayoutTests/platform/mac/editing/selection/5057506-2-expected.txt
r63291 r154702 1 ALERT: 3 42 ALERT: 10 81 ALERT: 35 2 ALERT: 109 3 3 layer at (0,0) size 800x600 4 4 RenderView at (0,0) size 800x600 -
trunk/LayoutTests/platform/mac/editing/selection/5057506-expected.txt
r63291 r154702 1 ALERT: 3 42 ALERT: 10 81 ALERT: 35 2 ALERT: 109 3 3 layer at (0,0) size 800x600 4 4 RenderView at (0,0) size 800x600 -
trunk/LayoutTests/platform/qt/editing/selection/5057506-2-expected.txt
r122716 r154702 1 ALERT: 3 32 ALERT: 11 2.51 ALERT: 34 2 ALERT: 113.5 3 3 layer at (0,0) size 800x600 4 4 RenderView at (0,0) size 800x600 -
trunk/LayoutTests/platform/qt/editing/selection/5057506-expected.txt
r122716 r154702 1 ALERT: 3 32 ALERT: 11 2.51 ALERT: 34 2 ALERT: 113.5 3 3 layer at (0,0) size 800x600 4 4 RenderView at (0,0) size 800x600 … … 27 27 RenderText {#text} at (0,0) size 20x19 28 28 text run at (0,0) width 20: "bar" 29 selection start: position 0of child 0 {#text} of child 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body29 selection start: position 3 of child 0 {#text} of child 0 {SPAN} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body 30 30 selection end: position 0 of child 3 {DIV} of child 2 {DIV} of body -
trunk/Source/WebCore/ChangeLog
r154701 r154702 1 2013-08-27 Robert Hogan <robert@webkit.org> 2 3 cell width / offsetTop incorrect 4 https://bugs.webkit.org/show_bug.cgi?id=11582 5 6 Reviewed by David Hyatt. 7 8 The offsetTop and offsetLeft of sections, rows and cells should include the table's border. There are separate 9 problems with the offset[Top|Left] of table sections and the offsetLeft of rows which are covered under bugs 119020 10 and 119021 respectively - here we stick to just fixing the inclusion of the border as it doesn't require rebaselining 11 a lot of tests. 12 13 Test: fast/table/offset-top-includes-border.html 14 15 * rendering/RenderBoxModelObject.cpp: 16 (WebCore::RenderBoxModelObject::adjustedPositionRelativeToOffsetParent): 17 * rendering/RenderTableSection.cpp: 18 (WebCore::RenderTableSection::layoutRows): 19 1 20 2013-08-27 Jacky Jiang <zhajiang@blackberry.com> 2 21 -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r154688 r154702 38 38 #include "RenderNamedFlowThread.h" 39 39 #include "RenderRegion.h" 40 #include "RenderTable.h" 40 41 #include "RenderView.h" 41 42 #include "ScrollingConstraints.h" … … 491 492 // of the element and stop this algorithm. 492 493 if (const RenderBoxModelObject* offsetParent = this->offsetParent()) { 493 if (offsetParent->isBox() && !offsetParent->isBody() )494 if (offsetParent->isBox() && !offsetParent->isBody() && !offsetParent->isTable()) 494 495 referencePoint.move(-toRenderBox(offsetParent)->borderLeft(), -toRenderBox(offsetParent)->borderTop()); 495 496 if (!isOutOfFlowPositioned() || flowThreadContainingBlock()) { -
trunk/Source/WebCore/rendering/RenderTableSection.cpp
r154580 r154702 525 525 // Set the row's x/y position and width/height. 526 526 if (RenderTableRow* rowRenderer = m_grid[r].rowRenderer) { 527 // FIXME: the x() position of the row should be table()->hBorderSpacing() so that it can 528 // report the correct offsetLeft. However, that will require a lot of rebaselining of test results. 527 529 rowRenderer->setLocation(LayoutPoint(0, m_rowPos[r])); 528 530 rowRenderer->setLogicalWidth(logicalWidth());
Note: See TracChangeset
for help on using the changeset viewer.