[LayoutNG] Remove extra call to AppendIdentityMapping
This patch removes an extra call to AppendIdentityMapping(), which will later hit DCHECK in ComputeOffsetMappingIfNeeded(). AppendBreakOpportunity() calls Append(), which calls AppendIdentityMapping(). The caller of AppendBreakOpportunity() should not call AppendIdentityMapping(). In addition, this patch adds DCHECK to ensure the integrity check built into ComputeOffsetMappingIfNeeded() always run. Bug: 636993 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: Ic7c0ec9d7c8ed8f65475b29bff633ddbeeee3248 Reviewed-on: https://chromium-review.googlesource.com/859817Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#528384}
Showing
Please register or sign in to comment