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

Unified Diff: Source/core/rendering/RenderTableCell.cpp

Issue 203473002: Should not render the table cell border if the <td> is empty. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | « LayoutTests/fast/table/table-cell-border-no-doctype-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTableCell.cpp
diff --git a/Source/core/rendering/RenderTableCell.cpp b/Source/core/rendering/RenderTableCell.cpp
index b465f0eabe0b86fdde164ed68f239936633b6b87..44601611dd62b3e2e47abac891991c8759cf813b 100644
--- a/Source/core/rendering/RenderTableCell.cpp
+++ b/Source/core/rendering/RenderTableCell.cpp
@@ -1219,7 +1219,7 @@ void RenderTableCell::paintBoxDecorations(PaintInfo& paintInfo, const LayoutPoin
paintBoxShadow(paintInfo, paintRect, style(), Inset);
- if (!style()->hasBorder() || tableElt->collapseBorders())
+ if (!style()->hasBorder() || tableElt->collapseBorders() || (!firstChild() && document().inQuirksMode()))
return;
paintBorder(paintInfo, paintRect, style());
« no previous file with comments | « LayoutTests/fast/table/table-cell-border-no-doctype-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698