Bug 1422538: Inline ServoElementSnapshot destructor. r=bz

No point in doing a function call for a default destructor.

MozReview-Commit-ID: Ll26umYyrKL
This commit is contained in:
Emilio Cobos Álvarez 2017-12-02 23:12:41 +01:00
parent e2adbbafc4
commit 7c35a51632
2 changed files with 5 additions and 6 deletions

View File

@ -27,11 +27,6 @@ ServoElementSnapshot::ServoElementSnapshot(const Element* aElement)
mSupportsLangAttr = aElement->SupportsLangAttr();
}
ServoElementSnapshot::~ServoElementSnapshot()
{
MOZ_COUNT_DTOR(ServoElementSnapshot);
}
void
ServoElementSnapshot::AddAttrs(Element* aElement,
int32_t aNameSpaceID,

View File

@ -71,7 +71,11 @@ public:
typedef ServoElementSnapshotFlags Flags;
explicit ServoElementSnapshot(const Element* aElement);
~ServoElementSnapshot();
~ServoElementSnapshot()
{
MOZ_COUNT_DTOR(ServoElementSnapshot);
}
bool HasAttrs() const { return HasAny(Flags::Attributes); }