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 |
(...skipping 17 matching lines...) Expand all Loading... |
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/editing/EditingUtilities.h" |
31 #include "core/html/HTMLTableCellElement.h" | 31 #include "core/html/HTMLTableCellElement.h" |
32 #include "core/layout/CollapsedBorderValue.h" | 32 #include "core/layout/CollapsedBorderValue.h" |
33 #include "core/layout/LayoutAnalyzer.h" | 33 #include "core/layout/LayoutAnalyzer.h" |
34 #include "core/layout/LayoutTableCol.h" | 34 #include "core/layout/LayoutTableCol.h" |
35 #include "core/layout/SubtreeLayoutScope.h" | 35 #include "core/layout/SubtreeLayoutScope.h" |
36 #include "core/paint/ObjectPaintInvalidator.h" | 36 #include "core/paint/ObjectPaintInvalidator.h" |
37 #include "core/paint/PaintLayer.h" | 37 #include "core/paint/PaintLayer.h" |
| 38 #include "core/paint/TableCellPaintInvalidator.h" |
38 #include "core/paint/TableCellPainter.h" | 39 #include "core/paint/TableCellPainter.h" |
39 #include "platform/geometry/FloatQuad.h" | 40 #include "platform/geometry/FloatQuad.h" |
40 #include "platform/geometry/TransformState.h" | 41 #include "platform/geometry/TransformState.h" |
41 #include "platform/wtf/PtrUtil.h" | 42 #include "platform/wtf/PtrUtil.h" |
42 | 43 |
43 namespace blink { | 44 namespace blink { |
44 | 45 |
45 using namespace HTMLNames; | 46 using namespace HTMLNames; |
46 | 47 |
47 struct SameSizeAsLayoutTableCell : public LayoutBlockFlow { | 48 struct SameSizeAsLayoutTableCell : public LayoutBlockFlow { |
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1484 r.Move(0, -IntrinsicPaddingBefore()); | 1485 r.Move(0, -IntrinsicPaddingBefore()); |
1485 } | 1486 } |
1486 | 1487 |
1487 bool LayoutTableCell::HasLineIfEmpty() const { | 1488 bool LayoutTableCell::HasLineIfEmpty() const { |
1488 if (GetNode() && HasEditableStyle(*GetNode())) | 1489 if (GetNode() && HasEditableStyle(*GetNode())) |
1489 return true; | 1490 return true; |
1490 | 1491 |
1491 return LayoutBlock::HasLineIfEmpty(); | 1492 return LayoutBlock::HasLineIfEmpty(); |
1492 } | 1493 } |
1493 | 1494 |
| 1495 PaintInvalidationReason LayoutTableCell::InvalidatePaint( |
| 1496 const PaintInvalidatorContext& context) const { |
| 1497 return TableCellPaintInvalidator(*this, context).InvalidatePaint(); |
| 1498 } |
| 1499 |
| 1500 PaintInvalidationReason LayoutTableCell::InvalidatePaint( |
| 1501 const PaintInvalidationState& state) { |
| 1502 return LayoutBlockFlow::InvalidatePaint(state); |
| 1503 } |
| 1504 |
1494 } // namespace blink | 1505 } // namespace blink |
OLD | NEW |