mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Bug 944200 followup - Consistently use nscoord_MIN for uninitialized mFloatEdgeIStart/End. r=mats
This fixes an inconsistency in part 2 (32faa7c639ff), which wrote the constant for uninitialized in two different ways. The constructor uses nscoord_MIN for uninitialized, and that's also what GetFloatEdges tests for, so this should use nscoord_MIN as well. I believe this is because the review comment in comment 29 was only partially addressed. I noticed the difference because it caused broken behavior in a tree with my patch for bug 1227493, which defines NS_INTRINSIC_WIDTH_UNKNOWN differently. Some text was disappearing on github (email and website on user pages), slack (usernames of private chats in the sidebar), and twitter (username of user who tweeted a quoted tweet). MozReview-Commit-ID: Ah9FUPf2dw4 --HG-- extra : rebase_source : 2d947e017647bc6d6029169ef57cddca5aa4f3a9
This commit is contained in:
parent
8312cf3057
commit
6fa3cf9282
@ -560,8 +560,8 @@ nsLineBox::ClearFloatEdges()
|
||||
{
|
||||
MOZ_ASSERT(IsInline(), "block line can't have float edges");
|
||||
if (mInlineData) {
|
||||
mInlineData->mFloatEdgeIStart = NS_INTRINSIC_WIDTH_UNKNOWN;
|
||||
mInlineData->mFloatEdgeIEnd = NS_INTRINSIC_WIDTH_UNKNOWN;
|
||||
mInlineData->mFloatEdgeIStart = nscoord_MIN;
|
||||
mInlineData->mFloatEdgeIEnd = nscoord_MIN;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user