| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
| 4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
| 5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. All r
ights reserved. |
| 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1571 | 1571 |
| 1572 for (unsigned i = current.cells.size() ; i; ) { | 1572 for (unsigned i = current.cells.size() ; i; ) { |
| 1573 --i; | 1573 --i; |
| 1574 LayoutTableCell* cell = current.cells[i]; | 1574 LayoutTableCell* cell = current.cells[i]; |
| 1575 LayoutPoint cellPoint = flipForWritingModeForChild(cell, adjuste
dLocation); | 1575 LayoutPoint cellPoint = flipForWritingModeForChild(cell, adjuste
dLocation); |
| 1576 if (static_cast<RenderObject*>(cell)->nodeAtPoint(request, resul
t, locationInContainer, cellPoint, action)) { | 1576 if (static_cast<RenderObject*>(cell)->nodeAtPoint(request, resul
t, locationInContainer, cellPoint, action)) { |
| 1577 updateHitTestResult(result, locationInContainer.point() - to
LayoutSize(cellPoint)); | 1577 updateHitTestResult(result, locationInContainer.point() - to
LayoutSize(cellPoint)); |
| 1578 return true; | 1578 return true; |
| 1579 } | 1579 } |
| 1580 } | 1580 } |
| 1581 if (!result.isRectBasedTest()) | 1581 if (!request.listBased()) |
| 1582 break; | 1582 break; |
| 1583 } | 1583 } |
| 1584 if (!result.isRectBasedTest()) | 1584 if (!request.listBased()) |
| 1585 break; | 1585 break; |
| 1586 } | 1586 } |
| 1587 | 1587 |
| 1588 return false; | 1588 return false; |
| 1589 } | 1589 } |
| 1590 | 1590 |
| 1591 void LayoutTableSection::removeCachedCollapsedBorders(const LayoutTableCell* cel
l) | 1591 void LayoutTableSection::removeCachedCollapsedBorders(const LayoutTableCell* cel
l) |
| 1592 { | 1592 { |
| 1593 if (!table()->collapseBorders()) | 1593 if (!table()->collapseBorders()) |
| 1594 return; | 1594 return; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 // FIXME: The table's direction should determine our row's direction, not th
e section's (see bug 96691). | 1628 // FIXME: The table's direction should determine our row's direction, not th
e section's (see bug 96691). |
| 1629 if (!style()->isLeftToRightDirection()) | 1629 if (!style()->isLeftToRightDirection()) |
| 1630 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); | 1630 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); |
| 1631 else | 1631 else |
| 1632 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); | 1632 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); |
| 1633 | 1633 |
| 1634 cell->setLogicalLocation(cellLocation); | 1634 cell->setLogicalLocation(cellLocation); |
| 1635 } | 1635 } |
| 1636 | 1636 |
| 1637 } // namespace blink | 1637 } // namespace blink |
| OLD | NEW |