Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTable.cpp

Issue 2852573002: Rename InvalidatePaintIfNeeded to drop deprecated IfNeeded suffix. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.h ('k') | third_party/WebKit/Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698