-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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}
- Loading branch information
Showing
1 changed file
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters