Bug 1429961: Avoid copying PostDestroyData. r?mats draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 15 Jan 2018 21:51:58 +0100
changeset 720621 d1aabb59379e5f7b81a84f140961bb05660ee52b
parent 720620 623dc3b0ade6cda9bdd9a2ec6cc9b57c67d37f29
child 720622 b9258dce670748a2e94e18cfdb9c8d8b79c92eb4
child 720644 e3d2a8b8bc982ec5a1953246b60d6c171811c571
child 720862 b93ee8a9cb6ded1fe88eda036bdc23ef321e6ac3
child 720863 316fefdd489cdbcac1de04995e4fa16b8ccdbbbc
push id95590
push userbmo:emilio@crisal.io
push dateMon, 15 Jan 2018 21:49:43 +0000
reviewersmats
bugs1429961
milestone59.0a1
Bug 1429961: Avoid copying PostDestroyData. r?mats We don't want that to happen. MozReview-Commit-ID: EQ6igMRyeaV
layout/generic/nsFrameList.h
--- a/layout/generic/nsFrameList.h
+++ b/layout/generic/nsFrameList.h
@@ -48,16 +48,19 @@ namespace layout {
       // A special alias for kPrincipalList that suppress the reflow request that
       // is normally done when manipulating child lists.
       kNoReflowPrincipalList        = 0x8000
   };
 
   // A helper class for nsIFrame::Destroy[From].  It's defined here because
   // nsFrameList needs it and we can't use nsIFrame here.
   struct PostFrameDestroyData {
+    PostFrameDestroyData(const PostFrameDestroyData&) = delete;
+    PostFrameDestroyData() = default;
+
     AutoTArray<RefPtr<nsIContent>, 50> mAnonymousContent;
     AutoTArray<RefPtr<nsIContent>, 50> mGeneratedContent;
     void AddAnonymousContent(already_AddRefed<nsIContent>&& aContent) {
       mAnonymousContent.AppendElement(aContent);
     }
     void AddGeneratedContent(already_AddRefed<nsIContent>&& aContent) {
       mGeneratedContent.AppendElement(aContent);
     }