Check MayHaveMargin() in HasMarginBefore|AfterQuirk()
This patch avoids calling MarginBefore|After().Quirk() if the element has no margins. This is try to improve performance in perf_test/layout/abspos.html, however we're not sure if this will have a real impact as pinpoint tryjobs are not being very clear about the results. BUG=1098231 Change-Id: I48eba7d0f42cc2822556661164e4f42a831b2c37 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2498586Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Manuel Rego <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#824365}
Showing
Please register or sign in to comment