Bug 1311277 Part 3 - Use LinkedList's move assignment in FCItemIterator::AppendItemsToList.
MozReview-Commit-ID: LLF519q9gcG
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -12808,21 +12808,17 @@ Iterator::AppendItemsToList(const Iterat
!aTargetList.mUndisplayedItems.IsEmpty()) {
do {
AppendItemToList(aTargetList);
} while (*this != aEnd);
return;
}
// Move our entire list of items into the empty target list.
- // XXX: If LinkedList supports move assignment, we could use
- // aTargetList.mItems = Move(mList.mItems);
- aTargetList.mItems.~LinkedList<FrameConstructionItem>();
- new (&aTargetList.mItems) LinkedList<FrameConstructionItem>(
- Move(mList.mItems));
+ aTargetList.mItems = Move(mList.mItems);
// Copy over the various counters
aTargetList.mInlineCount = mList.mInlineCount;
aTargetList.mBlockCount = mList.mBlockCount;
aTargetList.mLineParticipantCount = mList.mLineParticipantCount;
aTargetList.mItemCount = mList.mItemCount;
memcpy(aTargetList.mDesiredParentCounts, mList.mDesiredParentCounts,
sizeof(aTargetList.mDesiredParentCounts));