Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 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/editing/EditingUtilities.h" |
| 31 #include "core/html/HTMLTableCellElement.h" | 31 #include "core/html/HTMLTableCellElement.h" |
| 32 #include "core/layout/LayoutAnalyzer.h" | 32 #include "core/layout/LayoutAnalyzer.h" |
| 33 #include "core/layout/LayoutTableCol.h" | 33 #include "core/layout/LayoutTableCol.h" |
| 34 #include "core/layout/SubtreeLayoutScope.h" | 34 #include "core/layout/SubtreeLayoutScope.h" |
| 35 #include "core/paint/ObjectPaintInvalidator.h" | 35 #include "core/paint/ObjectPaintInvalidator.h" |
| 36 #include "core/paint/PaintLayer.h" | 36 #include "core/paint/PaintLayer.h" |
| 37 #include "core/paint/TableCellPaintInvalidator.h" | |
| 37 #include "core/paint/TableCellPainter.h" | 38 #include "core/paint/TableCellPainter.h" |
| 38 #include "core/style/CollapsedBorderValue.h" | 39 #include "core/style/CollapsedBorderValue.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 |
| (...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1481 r.Move(0, -IntrinsicPaddingBefore()); | 1482 r.Move(0, -IntrinsicPaddingBefore()); |
| 1482 } | 1483 } |
| 1483 | 1484 |
| 1484 bool LayoutTableCell::HasLineIfEmpty() const { | 1485 bool LayoutTableCell::HasLineIfEmpty() const { |
| 1485 if (GetNode() && HasEditableStyle(*GetNode())) | 1486 if (GetNode() && HasEditableStyle(*GetNode())) |
| 1486 return true; | 1487 return true; |
| 1487 | 1488 |
| 1488 return LayoutBlock::HasLineIfEmpty(); | 1489 return LayoutBlock::HasLineIfEmpty(); |
| 1489 } | 1490 } |
| 1490 | 1491 |
| 1492 PaintInvalidationReason LayoutTableCell::InvalidatePaintIfNeeded( | |
| 1493 const PaintInvalidatorContext& context) const { | |
|
wkorman
2017/04/27 22:30:23
Noting while reading --
Perhaps worth enhancing h
Xianzhu
2017/04/28 00:31:06
Good suggestion.
I would like to do this in a sep
wkorman
2017/04/28 02:24:54
Acknowledged.
| |
| 1494 return TableCellPaintInvalidator(*this, context).InvalidatePaintIfNeeded(); | |
| 1495 } | |
| 1496 | |
| 1497 PaintInvalidationReason LayoutTableCell::InvalidatePaintIfNeeded( | |
|
Xianzhu
2017/04/28 00:31:06
I would like to rename this to InvalidatePaintDepr
wkorman
2017/04/28 02:24:54
Sounds good.
| |
| 1498 const PaintInvalidationState& state) { | |
| 1499 return LayoutBlockFlow::InvalidatePaintIfNeeded(state); | |
| 1500 } | |
| 1501 | |
| 1491 } // namespace blink | 1502 } // namespace blink |
| OLD | NEW |