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, 2010, 2013 Apple Inc. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. |
8 * All rights reserved. | 8 * All rights reserved. |
9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
10 * | 10 * |
(...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 return Style()->BorderEnd(); | 1694 return Style()->BorderEnd(); |
1695 | 1695 |
1696 return Style()->BorderStart(); | 1696 return Style()->BorderStart(); |
1697 } | 1697 } |
1698 | 1698 |
1699 void LayoutTable::EnsureIsReadyForPaintInvalidation() { | 1699 void LayoutTable::EnsureIsReadyForPaintInvalidation() { |
1700 LayoutBlock::EnsureIsReadyForPaintInvalidation(); | 1700 LayoutBlock::EnsureIsReadyForPaintInvalidation(); |
1701 RecalcCollapsedBordersIfNeeded(); | 1701 RecalcCollapsedBordersIfNeeded(); |
1702 } | 1702 } |
1703 | 1703 |
1704 PaintInvalidationReason LayoutTable::InvalidatePaintIfNeeded( | 1704 PaintInvalidationReason LayoutTable::InvalidatePaint( |
1705 const PaintInvalidationState& paint_invalidation_state) { | 1705 const PaintInvalidationState& paint_invalidation_state) { |
1706 if (CollapseBorders() && !collapsed_borders_.IsEmpty()) | 1706 if (CollapseBorders() && !collapsed_borders_.IsEmpty()) |
1707 paint_invalidation_state.PaintingLayer() | 1707 paint_invalidation_state.PaintingLayer() |
1708 .SetNeedsPaintPhaseDescendantBlockBackgrounds(); | 1708 .SetNeedsPaintPhaseDescendantBlockBackgrounds(); |
1709 | 1709 |
1710 return LayoutBlock::InvalidatePaintIfNeeded(paint_invalidation_state); | 1710 return LayoutBlock::InvalidatePaint(paint_invalidation_state); |
1711 } | 1711 } |
1712 | 1712 |
1713 PaintInvalidationReason LayoutTable::InvalidatePaintIfNeeded( | 1713 PaintInvalidationReason LayoutTable::InvalidatePaint( |
1714 const PaintInvalidatorContext& context) const { | 1714 const PaintInvalidatorContext& context) const { |
1715 return TablePaintInvalidator(*this, context).InvalidatePaintIfNeeded(); | 1715 return TablePaintInvalidator(*this, context).InvalidatePaint(); |
1716 } | 1716 } |
1717 | 1717 |
1718 LayoutUnit LayoutTable::PaddingTop() const { | 1718 LayoutUnit LayoutTable::PaddingTop() const { |
1719 if (CollapseBorders()) | 1719 if (CollapseBorders()) |
1720 return LayoutUnit(); | 1720 return LayoutUnit(); |
1721 | 1721 |
1722 return LayoutBlock::PaddingTop(); | 1722 return LayoutBlock::PaddingTop(); |
1723 } | 1723 } |
1724 | 1724 |
1725 LayoutUnit LayoutTable::PaddingBottom() const { | 1725 LayoutUnit LayoutTable::PaddingBottom() const { |
(...skipping 11 matching lines...) Expand all Loading... |
1737 } | 1737 } |
1738 | 1738 |
1739 LayoutUnit LayoutTable::PaddingRight() const { | 1739 LayoutUnit LayoutTable::PaddingRight() const { |
1740 if (CollapseBorders()) | 1740 if (CollapseBorders()) |
1741 return LayoutUnit(); | 1741 return LayoutUnit(); |
1742 | 1742 |
1743 return LayoutBlock::PaddingRight(); | 1743 return LayoutBlock::PaddingRight(); |
1744 } | 1744 } |
1745 | 1745 |
1746 } // namespace blink | 1746 } // namespace blink |
OLD | NEW |