Bug 1393636 (part 3) - Pass nsWindowSizes to more AddSizeOf*() functions. r=heycam.
This is a purely non-functional plumbing change. Instead of passing a SizeOfState and an nsStyleSizes a bunch of places, we pass an nsWindowSizes, which contains both of them. This is a necessary precursor for the next patch. MozReview-Commit-ID: Ek03wDM50rB
This commit is contained in:
@@ -406,12 +406,11 @@ HTMLAnchorElement::IntrinsicState() const
|
||||
}
|
||||
|
||||
void
|
||||
HTMLAnchorElement::AddSizeOfExcludingThis(SizeOfState& aState,
|
||||
nsStyleSizes& aSizes,
|
||||
HTMLAnchorElement::AddSizeOfExcludingThis(nsWindowSizes& aSizes,
|
||||
size_t* aNodeSize) const
|
||||
{
|
||||
nsGenericHTMLElement::AddSizeOfExcludingThis(aState, aSizes, aNodeSize);
|
||||
*aNodeSize += Link::SizeOfExcludingThis(aState);
|
||||
nsGenericHTMLElement::AddSizeOfExcludingThis(aSizes, aNodeSize);
|
||||
*aNodeSize += Link::SizeOfExcludingThis(aSizes.mState);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
||||
Reference in New Issue
Block a user