| 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, 2007, 2008, 2009 Apple Inc. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 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 |
| 11 * modify it under the terms of the GNU Library General Public | 11 * modify it under the terms of the GNU Library General Public |
| 12 * License as published by the Free Software Foundation; either | 12 * License as published by the Free Software Foundation; either |
| 13 * version 2 of the License, or (at your option) any later version. | 13 * version 2 of the License, or (at your option) any later version. |
| 14 * | 14 * |
| 15 * This library is distributed in the hope that it will be useful, | 15 * This library is distributed in the hope that it will be useful, |
| 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 * Library General Public License for more details. | 18 * Library General Public License for more details. |
| 19 * | 19 * |
| 20 * You should have received a copy of the GNU Library General Public License | 20 * You should have received a copy of the GNU Library General Public License |
| 21 * along with this library; see the file COPYING.LIB. If not, write to | 21 * along with this library; see the file COPYING.LIB. If not, write to |
| 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 * Boston, MA 02110-1301, USA. | 23 * Boston, MA 02110-1301, USA. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "core/layout/LayoutTableCell.h" | 26 #include "core/layout/LayoutTableCell.h" |
| 27 | 27 |
| 28 #include "core/HTMLNames.h" | 28 #include "core/HTMLNames.h" |
| 29 #include "core/css/StylePropertySet.h" | 29 #include "core/css/StylePropertySet.h" |
| 30 #include "core/editing/EditingUtilities.h" |
| 30 #include "core/html/HTMLTableCellElement.h" | 31 #include "core/html/HTMLTableCellElement.h" |
| 31 #include "core/layout/LayoutAnalyzer.h" | 32 #include "core/layout/LayoutAnalyzer.h" |
| 32 #include "core/layout/LayoutTableCol.h" | 33 #include "core/layout/LayoutTableCol.h" |
| 33 #include "core/layout/SubtreeLayoutScope.h" | 34 #include "core/layout/SubtreeLayoutScope.h" |
| 34 #include "core/paint/ObjectPaintInvalidator.h" | 35 #include "core/paint/ObjectPaintInvalidator.h" |
| 35 #include "core/paint/PaintLayer.h" | 36 #include "core/paint/PaintLayer.h" |
| 36 #include "core/paint/TableCellPainter.h" | 37 #include "core/paint/TableCellPainter.h" |
| 37 #include "core/style/CollapsedBorderValue.h" | 38 #include "core/style/CollapsedBorderValue.h" |
| 38 #include "platform/geometry/FloatQuad.h" | 39 #include "platform/geometry/FloatQuad.h" |
| 39 #include "platform/geometry/TransformState.h" | 40 #include "platform/geometry/TransformState.h" |
| (...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1482 if (cb) | 1483 if (cb) |
| 1483 cb->adjustChildDebugRect(rect); | 1484 cb->adjustChildDebugRect(rect); |
| 1484 | 1485 |
| 1485 return rect; | 1486 return rect; |
| 1486 } | 1487 } |
| 1487 | 1488 |
| 1488 void LayoutTableCell::adjustChildDebugRect(LayoutRect& r) const { | 1489 void LayoutTableCell::adjustChildDebugRect(LayoutRect& r) const { |
| 1489 r.move(0, -intrinsicPaddingBefore()); | 1490 r.move(0, -intrinsicPaddingBefore()); |
| 1490 } | 1491 } |
| 1491 | 1492 |
| 1493 bool LayoutTableCell::hasLineIfEmpty() const { |
| 1494 if (node() && hasEditableStyle(*node())) |
| 1495 return true; |
| 1496 |
| 1497 return LayoutBlock::hasLineIfEmpty(); |
| 1498 } |
| 1499 |
| 1492 } // namespace blink | 1500 } // namespace blink |
| OLD | NEW |