Bug 1697979 - Part 1: Reuse previously built stacking context display items without merging r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D128413
This commit is contained in:
@@ -10293,8 +10293,9 @@ void nsTextFrame::ToCString(nsCString& aBuf) const {
|
||||
return;
|
||||
}
|
||||
|
||||
const uint32_t contentLength = AssertedCast<uint32_t>(GetContentLength());
|
||||
if (0 == contentLength) {
|
||||
const int32_t length = GetContentEnd() - mContentOffset;
|
||||
if (length <= 0) {
|
||||
// Negative lengths are possible during invalidation.
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user