зеркало из https://github.com/mozilla/gecko-dev.git
b4cb330902
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 |
||
---|---|---|
.. | ||
crashtests | ||
reftests | ||
test | ||
BasicTableLayoutStrategy.cpp | ||
BasicTableLayoutStrategy.h | ||
FixedTableLayoutStrategy.cpp | ||
FixedTableLayoutStrategy.h | ||
SpanningCellSorter.cpp | ||
SpanningCellSorter.h | ||
TableArea.h | ||
celldata.h | ||
moz.build | ||
nsCellMap.cpp | ||
nsCellMap.h | ||
nsITableCellLayout.h | ||
nsITableLayoutStrategy.h | ||
nsTableCellFrame.cpp | ||
nsTableCellFrame.h | ||
nsTableColFrame.cpp | ||
nsTableColFrame.h | ||
nsTableColGroupFrame.cpp | ||
nsTableColGroupFrame.h | ||
nsTableFrame.cpp | ||
nsTableFrame.h | ||
nsTableRowFrame.cpp | ||
nsTableRowFrame.h | ||
nsTableRowGroupFrame.cpp | ||
nsTableRowGroupFrame.h | ||
nsTableWrapperFrame.cpp | ||
nsTableWrapperFrame.h |