Optimize and inline EnclosingLayoutRect
The FloatRect version of EnclosingLayoutRect shows up rather prominently in profiling data for both layout and LayoutNG, particularly in the font metrics and text shaping code. This change reduces the time spent in the method by half by avoiding overhead and allowing it to be inlined. Change-Id: Ica28d6a41edf476619f581c2ff2d9471d13f7c12 Reviewed-on: https://chromium-review.googlesource.com/c/1277597Reviewed-by:Stefan Zager <szager@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#599027}
Showing
Please register or sign in to comment