Issue #3049 - Undo Stylo nonsense that breaks body and frame margins.

This restores support for using HTML tag styling of margins on the body.
Reftests post bug still pass for dynamic changes, so does the newly-added
test for body margins and frames that tests the old styling method.
This also removes the reftest list for stylo testing for obvious reasons.
This commit is contained in:
Moonchild 2022-01-07 20:09:13 +00:00 committed by roytam1
commit 0f56697eb9
15 changed files with 283 additions and 171 deletions

View file

@ -13,6 +13,8 @@
namespace mozilla {
namespace dom {
#define TABLE_ATTRS_DIRTY ((nsMappedAttributes*)0x1)
class TableRowsCollection;
class HTMLTableElement final : public nsGenericHTMLElement
@ -219,6 +221,8 @@ protected:
RefPtr<nsContentList> mTBodies;
RefPtr<TableRowsCollection> mRows;
// Sentinel value of TABLE_ATTRS_DIRTY indicates that this is dirty and needs
// to be recalculated.
nsMappedAttributes *mTableInheritedAttributes;
void BuildInheritedAttributes();
void ReleaseInheritedAttributes();