commit | 4226ddf99103e493d7afb23a4c7902ee496108b6 | [log] [tgz] |
---|---|---|
author | Manuel Rego Casasnovas <rego@igalia.com> | Fri Oct 12 00:23:12 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 12 00:23:12 2018 |
tree | 8b6358ef75f96692d9de1ffd0c3560e7ab9c69c3 | |
parent | aefd059dae13f857dd4b5e5bc0cdf5a99595daca [diff] |
Fix perf regression in LayoutBoxModelObject::RelativePositionOffset() In r597543 we introduced a performance regression due to the changes in LayoutBoxModelObject::RelativePositionOffset(). One of the main differences is that AvailableHeight|Width() was called always as part of the method, while that was not the case before. This patches moves the calls to AvailableHeight|Width() to the moment where they are needed, trying to minimize the impact in performance and come back to previous numbers. No new tests as it's already covered by existent ones. BUG=893884,835607 Change-Id: Id8aaba4736a821af9f401492206840c12a2be0e6 Reviewed-on: https://chromium-review.googlesource.com/c/1273117 Commit-Queue: Manuel Rego <rego@igalia.com> Reviewed-by: Javier Fernandez <jfernandez@igalia.com> Cr-Commit-Position: refs/heads/master@{#599034}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .