| 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 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights
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 21 matching lines...) Expand all Loading... |
| 32 #include "core/rendering/GraphicsContextAnnotator.h" | 32 #include "core/rendering/GraphicsContextAnnotator.h" |
| 33 #include "core/rendering/HitTestResult.h" | 33 #include "core/rendering/HitTestResult.h" |
| 34 #include "core/rendering/LayoutRectRecorder.h" | 34 #include "core/rendering/LayoutRectRecorder.h" |
| 35 #include "core/rendering/PaintInfo.h" | 35 #include "core/rendering/PaintInfo.h" |
| 36 #include "core/rendering/RenderTableCell.h" | 36 #include "core/rendering/RenderTableCell.h" |
| 37 #include "core/rendering/RenderTableCol.h" | 37 #include "core/rendering/RenderTableCol.h" |
| 38 #include "core/rendering/RenderTableRow.h" | 38 #include "core/rendering/RenderTableRow.h" |
| 39 #include "core/rendering/RenderView.h" | 39 #include "core/rendering/RenderView.h" |
| 40 #include "core/rendering/SubtreeLayoutScope.h" | 40 #include "core/rendering/SubtreeLayoutScope.h" |
| 41 #include "wtf/HashSet.h" | 41 #include "wtf/HashSet.h" |
| 42 #include "wtf/Vector.h" | |
| 43 | 42 |
| 44 using namespace std; | 43 using namespace std; |
| 45 | 44 |
| 46 namespace WebCore { | 45 namespace WebCore { |
| 47 | 46 |
| 48 using namespace HTMLNames; | 47 using namespace HTMLNames; |
| 49 | 48 |
| 50 // Those 2 variables are used to balance the memory consumption vs the repaint t
ime on big tables. | 49 // Those 2 variables are used to balance the memory consumption vs the repaint t
ime on big tables. |
| 51 static unsigned gMinTableSizeToUseFastPaintPathWithOverflowingCell = 75 * 75; | 50 static unsigned gMinTableSizeToUseFastPaintPathWithOverflowingCell = 75 * 75; |
| 52 static float gMaxAllowedOverflowingCellRatioForFastPaintPath = 0.1f; | 51 static float gMaxAllowedOverflowingCellRatioForFastPaintPath = 0.1f; |
| (...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 if (!style()->isLeftToRightDirection()) | 1811 if (!style()->isLeftToRightDirection()) |
| 1813 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); | 1812 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); |
| 1814 else | 1813 else |
| 1815 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); | 1814 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); |
| 1816 | 1815 |
| 1817 cell->setLogicalLocation(cellLocation); | 1816 cell->setLogicalLocation(cellLocation); |
| 1818 view()->addLayoutDelta(oldCellLocation - cell->location()); | 1817 view()->addLayoutDelta(oldCellLocation - cell->location()); |
| 1819 } | 1818 } |
| 1820 | 1819 |
| 1821 } // namespace WebCore | 1820 } // namespace WebCore |
| OLD | NEW |