[FragmentItem] Add move ctor for |NGFragmentItem|
r782445 crrev.com/c/2266052 changed to use copy instead of move when reusing previous layout results because we can't break them. There is another case we copy |NGFragmentItem|, when |NGFragmentItemsBuilder| creates a new |NGFragmentItems|. In this case, it is safe to break |NGFragmentItem| in |NGFragmentItems|. This patch adds move constructors to support moving in this case. The caller, |NGFragmentItems::NGFragmentItems| already use |std::move|. https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/layout/ng/inline/ng_fragment_items.cc;l=23?q=NGFragmentItems::NGFragmentItems Bug: 982194 Change-Id: Iee89fb228459ab37144824f2809f33726a4a2543 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2286249 Commit-Queue: Koji Ishii <kojii@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:
Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#786204}
Showing
Please register or sign in to comment