gecko-dev/layout/tables
Chris Peterson b4cb330902 Bug 1485179 - Part 2: Resize BCCornerInfo's bit fields to fit all BCBorderOwner enum values. r=dholbert
Unfortunately, accepting all BCBorderOwner enum values causes the layout/reftests/table-bordercollapse/frame_above_rules_all.html mochitest to fail. To fix the -Wbitfield-enum-conversion warnings without breaking the test, this patch explicitly masks the BCBorderOwner enum values to preserve the previous implicit truncation. I filed follow-up bug 1508921 to remove this workaround and fix the test.

This enum truncation was reported by clang's -Wbitfield-enum-conversion warnings:

layout/tables/nsTableFrame.cpp:5318:14 [-Wbitfield-enum-conversion] bit-field 'ownerElem' is not wide enough to store all enumerators of 'BCBorderOwner'
layout/tables/nsTableFrame.cpp:5358:16 [-Wbitfield-enum-conversion] bit-field 'ownerElem' is not wide enough to store all enumerators of 'BCBorderOwner'
layout/tables/nsTableFrame.cpp:5374:18 [-Wbitfield-enum-conversion] bit-field 'subElem' is not wide enough to store all enumerators of 'BCBorderOwner'
layout/tables/nsTableFrame.cpp:5385:18 [-Wbitfield-enum-conversion] bit-field 'subElem' is not wide enough to store all enumerators of 'BCBorderOwner'

Differential Revision: https://phabricator.services.mozilla.com/D12382

--HG--
extra : rebase_source : 74c1c3d49e84212ba61c0784f669cadb19f2b4cd
extra : intermediate-source : 2336858d1df479b16e096a9bb5f8eea5008ca9ea
extra : source : 4ab689fc9a368a4c6faaf71169eb72fdc9bb249d
2018-08-20 10:07:45 -07:00
..
crashtests Bug 1196668 - Make images without alt generate a replaced box regardless of src. r=bz 2018-11-09 18:10:14 +01:00
reftests
test
BasicTableLayoutStrategy.cpp Bug 1490611 - physical to logical name refactor: DISPLAY_*_WIDTH to DISPLAY_*_INLINE_SIZE(as well as the relevant struct in the macro contents) r=jfkthame 2018-09-12 12:35:47 +00:00
BasicTableLayoutStrategy.h
FixedTableLayoutStrategy.cpp Bug 1490611 - physical to logical name refactor: DISPLAY_*_WIDTH to DISPLAY_*_INLINE_SIZE(as well as the relevant struct in the macro contents) r=jfkthame 2018-09-12 12:35:47 +00:00
FixedTableLayoutStrategy.h
SpanningCellSorter.cpp
SpanningCellSorter.h
TableArea.h
celldata.h Bug 1397119 - Part 2: Rename p2t to d2a (app units per device pixel). r=dbaron 2018-09-10 19:55:05 +00:00
moz.build
nsCellMap.cpp Bug 1474516 - A little cleanup of border-collapse code while reviewing bug 1405929. r=dholbert 2018-07-11 09:34:43 +10:00
nsCellMap.h Bug 1453795 - Layout - Initialize member fields in classes/ structures. r=dbaron 2018-07-12 09:42:14 +03:00
nsITableCellLayout.h
nsITableLayoutStrategy.h
nsTableCellFrame.cpp Bug 1494426 part 1: Use ReflowInput::AvailableSize() convenience method in a few more places. r=TYLin 2018-09-26 21:42:41 +00:00
nsTableCellFrame.h Bug 1489454 - Remove all trailing whitespaces (again) r=Ehsan 2018-09-07 14:47:51 +00:00
nsTableColFrame.cpp Bug 916972 - Eliminate nsIFrame::GetSplittableType() completely. r=mats,dholbert 2018-11-05 19:11:12 +00:00
nsTableColFrame.h Bug 916972 - Eliminate nsIFrame::GetSplittableType() completely. r=mats,dholbert 2018-11-05 19:11:12 +00:00
nsTableColGroupFrame.cpp Bug 1464928 - Invalidate border-collapse tables when we remove the border from a cell. r=mstange 2018-06-07 20:31:38 +12:00
nsTableColGroupFrame.h Bug 1479859 patch 3 - Add an nsIFrame::IsFrameOfType bit to say whether frames support contain:layout and contain:paint. r=dholbert 2018-08-07 15:02:07 -07:00
nsTableFrame.cpp Bug 1485179 - Part 2: Resize BCCornerInfo's bit fields to fit all BCBorderOwner enum values. r=dholbert 2018-08-20 10:07:45 -07:00
nsTableFrame.h Bug 1491639 - rename function IS_TABLE_CELL r=dbaron 2018-09-18 01:29:19 +00:00
nsTableRowFrame.cpp Bug 1491639 - rename function IS_TABLE_CELL r=dbaron 2018-09-18 01:29:19 +00:00
nsTableRowFrame.h Bug 1397119 - Part 1: Change nsTable*Frame::Get*BorderWidth() return values from nscoord to BCPixelSize. r=dbaron 2018-09-10 19:51:52 +00:00
nsTableRowGroupFrame.cpp Bug 1507127 - Move the page-break-{before,after} properties to not use mako. r=heycam 2018-11-15 08:15:13 +00:00
nsTableRowGroupFrame.h Bug 1479859 patch 3 - Add an nsIFrame::IsFrameOfType bit to say whether frames support contain:layout and contain:paint. r=dholbert 2018-08-07 15:02:07 -07:00
nsTableWrapperFrame.cpp Bug 1490611 - physical to logical name refactor: DISPLAY_*_WIDTH to DISPLAY_*_INLINE_SIZE(as well as the relevant struct in the macro contents) r=jfkthame 2018-09-12 12:35:47 +00:00
nsTableWrapperFrame.h