Bug 1341648 - stylo: Include content rules from HTMLTableCellElement::WalkContentStyleRules ; r=bz

This also removes the TABLE_ATTRS_DIRTY optimization. Constructing nsMappedAttributes isn't really expensive and we do it all the time anyway.

MozReview-Commit-ID: 2krt1nFUzgl
This commit is contained in:
Manish Goregaokar
2017-03-26 13:53:34 -07:00
parent 7c8f7bb51a
commit 42f484fe6f
19 changed files with 144 additions and 119 deletions

View File

@@ -14,8 +14,6 @@
namespace mozilla {
namespace dom {
#define TABLE_ATTRS_DIRTY ((nsMappedAttributes*)0x1)
class TableRowsCollection;
class HTMLTableElement final : public nsGenericHTMLElement
@@ -232,8 +230,6 @@ 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();