Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Issue 129633004: Avoid unnecessary forced layout of flex items when stretching (Closed)

Created:
6 years, 11 months ago by leviw_travelin_and_unemployed
Modified:
6 years, 11 months ago
Reviewers:
ojan, dsinclair, esprehn, tony
CC:
blink-reviews, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, zoltan1
Visibility:
Public.

Description

Avoid unnecessary forced layout of flex items when stretching An old optimization to RenderFlexibleBox layout considered whether or not an element can stretch in the orthogonal direction to flow to determine whether or not to force layout. This case is already handled properly in applyStretchAlignmentToChild, so this was unnecessarily causing extra layouts. Fixing this speeds up our performance on the Holiday Lites benchmark: http://ie.microsoft.com/testdrive/Performance/HolidayLites/ TEST=PerformanceTests/flexbox-with-stretch-layout.html BUG=331848 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164728

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -15 lines) Patch
M LayoutTests/css3/flexbox/repaint-on-layout-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
A PerformanceTests/flexbox-with-stretch-layout.html View 1 chunk +65 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderFlexibleBox.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 2 chunks +2 lines, -12 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
leviw_travelin_and_unemployed
6 years, 11 months ago (2014-01-08 23:19:50 UTC) #1
ojan
LGTM Dan, FYI, this happens to "fix" your repaint test because it gets rid of ...
6 years, 11 months ago (2014-01-08 23:38:39 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leviw@chromium.org/129633004/1
6 years, 11 months ago (2014-01-08 23:39:32 UTC) #3
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 02:10:59 UTC) #4
Message was sent while issue was closed.
Change committed as 164728

Powered by Google App Engine
This is Rietveld 408576698