Title: [197486] trunk
- Revision
- 197486
- Author
- [email protected]
- Date
- 2016-03-02 19:30:30 -0800 (Wed, 02 Mar 2016)
Log Message
Paint table borders on empty cells even in quirks mode.
https://bugs.webkit.org/show_bug.cgi?id=154928
Reviewed by David Hyatt.
Enable border painting for empty cells unless 'empty-cells: hide' is set.
This is inline with FF and Chrome behaviour.
Source/WebCore:
Test: fast/table/border-on-empty-table-cells-quirks-mode.html
* rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::paintBoxDecorations):
LayoutTests:
* fast/table/border-on-empty-table-cells-quirks-mode-expected.html: Added.
* fast/table/border-on-empty-table-cells-quirks-mode.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (197485 => 197486)
--- trunk/LayoutTests/ChangeLog 2016-03-03 02:06:18 UTC (rev 197485)
+++ trunk/LayoutTests/ChangeLog 2016-03-03 03:30:30 UTC (rev 197486)
@@ -1,3 +1,16 @@
+2016-03-02 Zalan Bujtas <[email protected]>
+
+ Paint table borders on empty cells even in quirks mode.
+ https://bugs.webkit.org/show_bug.cgi?id=154928
+
+ Reviewed by David Hyatt.
+
+ Enable border painting for empty cells unless 'empty-cells: hide' is set.
+ This is inline with FF and Chrome behaviour.
+
+ * fast/table/border-on-empty-table-cells-quirks-mode-expected.html: Added.
+ * fast/table/border-on-empty-table-cells-quirks-mode.html: Added.
+
2016-03-02 Ryan Haddad <[email protected]>
Marking storage/indexeddb/odd-strings.html as flaky on mac-wk1
Added: trunk/LayoutTests/fast/table/border-on-empty-table-cells-quirks-mode-expected.html (0 => 197486)
--- trunk/LayoutTests/fast/table/border-on-empty-table-cells-quirks-mode-expected.html (rev 0)
+++ trunk/LayoutTests/fast/table/border-on-empty-table-cells-quirks-mode-expected.html 2016-03-03 03:30:30 UTC (rev 197486)
@@ -0,0 +1,20 @@
+<html>
+<head>
+<title>This tests that we paint borders on empty table cells even in quirks mode.</title>
+<style>
+div {
+ position: absolute;
+ border: 1px solid green;
+ height: 48px;
+ width: 52px;
+}
+</style>
+</head>
+<body>
+<div style="left: 10px; top: 10px"></div>
+<div style="left: 10px; top: 62px"></div>
+<div style="left: 10px; top: 168px"></div>
+<div style="left: 10px; top: 222px"></div>
+<div style="left: 10px; top: 274px"></div>
+</body>
+</html>
\ No newline at end of file
Added: trunk/LayoutTests/fast/table/border-on-empty-table-cells-quirks-mode.html (0 => 197486)
--- trunk/LayoutTests/fast/table/border-on-empty-table-cells-quirks-mode.html (rev 0)
+++ trunk/LayoutTests/fast/table/border-on-empty-table-cells-quirks-mode.html 2016-03-03 03:30:30 UTC (rev 197486)
@@ -0,0 +1,17 @@
+<html>
+<head>
+<title>This tests that we paint borders on empty table cells even in quirks mode.</title>
+<style>
+td {
+ border: 1px solid green;
+ height: 50px;
+ width: 50px;
+}
+</style>
+</head>
+<body>
+ <table style="empty-cells: show"><tr><td></td></tr><tr><td> </td></tr></table>
+ <table style="empty-cells: hide"><tr><td></td></tr><tr><td> </td></tr></table>
+ <table><tr><td></td></tr><tr><td> </td></tr></table>
+</body>
+</html>
\ No newline at end of file
Modified: trunk/LayoutTests/fast/table/table-cell-border-no-doctype-expected.html (197485 => 197486)
--- trunk/LayoutTests/fast/table/table-cell-border-no-doctype-expected.html 2016-03-03 02:06:18 UTC (rev 197485)
+++ trunk/LayoutTests/fast/table/table-cell-border-no-doctype-expected.html 2016-03-03 03:30:30 UTC (rev 197486)
@@ -13,14 +13,14 @@
<table>
<tr>
<td width="50%" style=" border: 1px solid red;background-color: yellow;"><p></p></td>
- <td width="50%" style=" border: none"></td>
+ <td width="50%" style=" border: 1px solid red;"></td>
</tr>
</table>
</br>
<table>
<tr>
<td width="50%" style=" border: 1px solid red;background-color: yellow;"><p></p></td>
- <td width="50%" style=" border: none"></td>
+ <td width="50%" style=" border: 1px solid red;"></td>
</tr>
</table>
</body>
Modified: trunk/Source/WebCore/ChangeLog (197485 => 197486)
--- trunk/Source/WebCore/ChangeLog 2016-03-03 02:06:18 UTC (rev 197485)
+++ trunk/Source/WebCore/ChangeLog 2016-03-03 03:30:30 UTC (rev 197486)
@@ -1,3 +1,18 @@
+2016-03-02 Zalan Bujtas <[email protected]>
+
+ Paint table borders on empty cells even in quirks mode.
+ https://bugs.webkit.org/show_bug.cgi?id=154928
+
+ Reviewed by David Hyatt.
+
+ Enable border painting for empty cells unless 'empty-cells: hide' is set.
+ This is inline with FF and Chrome behaviour.
+
+ Test: fast/table/border-on-empty-table-cells-quirks-mode.html
+
+ * rendering/RenderTableCell.cpp:
+ (WebCore::RenderTableCell::paintBoxDecorations):
+
2016-03-02 Ryosuke Niwa <[email protected]>
HTML parser instantiates a custom element inside a template element with a wrong owner document
Modified: trunk/Source/WebCore/rendering/RenderTableCell.cpp (197485 => 197486)
--- trunk/Source/WebCore/rendering/RenderTableCell.cpp 2016-03-03 02:06:18 UTC (rev 197485)
+++ trunk/Source/WebCore/rendering/RenderTableCell.cpp 2016-03-03 03:30:30 UTC (rev 197486)
@@ -1277,8 +1277,8 @@
if (!paintInfo.shouldPaintWithinRoot(*this))
return;
- RenderTable* tableElt = table();
- if (!tableElt->collapseBorders() && style().emptyCells() == HIDE && !firstChild())
+ RenderTable* table = this->table();
+ if (!table->collapseBorders() && style().emptyCells() == HIDE && !firstChild())
return;
LayoutRect paintRect = LayoutRect(paintOffset, frameRect().size());
@@ -1289,7 +1289,7 @@
paintBoxShadow(paintInfo, paintRect, style(), Inset);
- if (!style().hasBorder() || tableElt->collapseBorders() || (!firstChild() && document().inQuirksMode()))
+ if (!style().hasBorder() || table->collapseBorders())
return;
paintBorder(paintInfo, paintRect, style());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes