Created attachment 545397 [details] [diff] [review]
Comment on attachment 545397 [details] [diff] [review]
- In nsTextFragment::SizeOf():
+ PRInt64 size = sizeof(*this);
+ size += GetLength() * Is2b() ? sizeof(*m2b) : sizeof(*m1b);
We should only add the size of the text itself if mState.mInHeap is true, if not, it's a text fragment that points to a shared static whitespace string.
r=jst with that.
this has been backed out by ehsan due to bustage with all the other changesets in the same push