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

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

Issue 2838643003: Invalidate collapsed borders using currentColor when color changes (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, 2008, 2009, 2010, 2013 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 LayoutTableBoxComponent::StyleDidChange(diff, old_style); 124 LayoutTableBoxComponent::StyleDidChange(diff, old_style);
125 PropagateStyleToAnonymousChildren(); 125 PropagateStyleToAnonymousChildren();
126 126
127 if (!old_style) 127 if (!old_style)
128 return; 128 return;
129 129
130 LayoutTable* table = this->Table(); 130 LayoutTable* table = this->Table();
131 if (!table) 131 if (!table)
132 return; 132 return;
133 133
134 if (!table->SelfNeedsLayout() && !table->NormalChildNeedsLayout() && 134 LayoutTableBoxComponent::InvalidateCollapsedBordersOnStyleChange(
135 old_style->Border() != Style()->Border()) 135 *this, *table, diff, *old_style);
136 table->InvalidateCollapsedBorders();
137 136
138 if (LayoutTableBoxComponent::DoCellsHaveDirtyWidth(*this, *table, diff, 137 if (LayoutTableBoxComponent::DoCellsHaveDirtyWidth(*this, *table, diff,
139 *old_style)) 138 *old_style))
140 MarkAllCellsWidthsDirtyAndOrNeedsLayout( 139 MarkAllCellsWidthsDirtyAndOrNeedsLayout(
141 LayoutTable::kMarkDirtyAndNeedsLayout); 140 LayoutTable::kMarkDirtyAndNeedsLayout);
142 } 141 }
143 142
144 void LayoutTableSection::WillBeRemovedFromTree() { 143 void LayoutTableSection::WillBeRemovedFromTree() {
145 LayoutTableBoxComponent::WillBeRemovedFromTree(); 144 LayoutTableBoxComponent::WillBeRemovedFromTree();
146 145
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after
2167 bool LayoutTableSection::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() 2166 bool LayoutTableSection::PaintedOutputOfObjectHasNoEffectRegardlessOfSize()
2168 const { 2167 const {
2169 // LayoutTableSection paints background from columns. 2168 // LayoutTableSection paints background from columns.
2170 if (Table()->HasColElements()) 2169 if (Table()->HasColElements())
2171 return false; 2170 return false;
2172 return LayoutTableBoxComponent:: 2171 return LayoutTableBoxComponent::
2173 PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); 2172 PaintedOutputOfObjectHasNoEffectRegardlessOfSize();
2174 } 2173 }
2175 2174
2176 } // namespace blink 2175 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.cpp ('k') | third_party/WebKit/Source/core/paint/TableCellPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698