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

Unified Diff: Source/core/layout/LayoutTableSection.cpp

Issue 1234463005: Don't invalidate cell when collapsed border changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/LayoutTableSection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTableSection.cpp
diff --git a/Source/core/layout/LayoutTableSection.cpp b/Source/core/layout/LayoutTableSection.cpp
index d429db7252bc7090b4ffeff46ca27de4cfc9b792..42ddda26766d1b17236e7f4210ae6ff4ddf86216 100644
--- a/Source/core/layout/LayoutTableSection.cpp
+++ b/Source/core/layout/LayoutTableSection.cpp
@@ -1602,19 +1602,14 @@ void LayoutTableSection::removeCachedCollapsedBorders(const LayoutTableCell* cel
m_cellsCollapsedBorders.remove(std::make_pair(cell, side));
}
-bool LayoutTableSection::setCachedCollapsedBorder(const LayoutTableCell* cell, CollapsedBorderSide side, const CollapsedBorderValue& border)
+void LayoutTableSection::setCachedCollapsedBorder(const LayoutTableCell* cell, CollapsedBorderSide side, const CollapsedBorderValue& border)
{
ASSERT(table()->collapseBorders());
CellsCollapsedBordersMap::iterator it = m_cellsCollapsedBorders.find(std::make_pair(cell, side));
- if (it == m_cellsCollapsedBorders.end()) {
+ if (it == m_cellsCollapsedBorders.end())
m_cellsCollapsedBorders.add(std::make_pair(cell, side), border);
- return true;
- }
- if (!it->value.equals(border)) {
+ else
it->value = border;
- return true;
- }
- return false;
}
const CollapsedBorderValue& LayoutTableSection::cachedCollapsedBorder(const LayoutTableCell* cell, CollapsedBorderSide side) const
« no previous file with comments | « Source/core/layout/LayoutTableSection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698