Title: [251283] trunk/Source/WebCore
- Revision
- 251283
- Author
- [email protected]
- Date
- 2019-10-18 09:12:44 -0700 (Fri, 18 Oct 2019)
Log Message
[LFC][TFC] Fix table's total horizontal spacing computation
https://bugs.webkit.org/show_bug.cgi?id=203151
<rdar://problem/56406930>
Reviewed by Antti Koivisto.
The horizontal spacing value sets the gaps between
1. first column and the left edge of the table's content box
2. between 2 columns
3. last column and the right edge of the table's content box
In case of 'n' columns, the number of gaps is 'n + 1'.
* layout/tableformatting/TableGrid.h:
(WebCore::Layout::TableGrid::totalHorizontalSpacing const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (251282 => 251283)
--- trunk/Source/WebCore/ChangeLog 2019-10-18 16:11:34 UTC (rev 251282)
+++ trunk/Source/WebCore/ChangeLog 2019-10-18 16:12:44 UTC (rev 251283)
@@ -1,5 +1,22 @@
2019-10-18 Zalan Bujtas <[email protected]>
+ [LFC][TFC] Fix table's total horizontal spacing computation
+ https://bugs.webkit.org/show_bug.cgi?id=203151
+ <rdar://problem/56406930>
+
+ Reviewed by Antti Koivisto.
+
+ The horizontal spacing value sets the gaps between
+ 1. first column and the left edge of the table's content box
+ 2. between 2 columns
+ 3. last column and the right edge of the table's content box
+ In case of 'n' columns, the number of gaps is 'n + 1'.
+
+ * layout/tableformatting/TableGrid.h:
+ (WebCore::Layout::TableGrid::totalHorizontalSpacing const):
+
+2019-10-18 Zalan Bujtas <[email protected]>
+
[LFC][TFC] Cache table's width constraint values.
https://bugs.webkit.org/show_bug.cgi?id=203135
<rdar://problem/56396352>
Modified: trunk/Source/WebCore/layout/tableformatting/TableGrid.h (251282 => 251283)
--- trunk/Source/WebCore/layout/tableformatting/TableGrid.h 2019-10-18 16:11:34 UTC (rev 251282)
+++ trunk/Source/WebCore/layout/tableformatting/TableGrid.h 2019-10-18 16:12:44 UTC (rev 251283)
@@ -48,7 +48,7 @@
void setHorizontalSpacing(LayoutUnit horizontalSpacing) { m_horizontalSpacing = horizontalSpacing; }
LayoutUnit horizontalSpacing() const { return m_horizontalSpacing; }
- LayoutUnit totalHorizontalSpacing() const { return columnsContext().columns().size() * horizontalSpacing(); }
+ LayoutUnit totalHorizontalSpacing() const { return (columnsContext().columns().size() + 1) * horizontalSpacing(); }
void setVerticalSpacing(LayoutUnit verticalSpacing) { m_verticalSpacing = verticalSpacing; }
LayoutUnit verticalSpacing() const { return m_verticalSpacing; }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes