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

Issue 202283003: Skip lots of display checks in adjustRenderStyle when possible (Closed)

Created:
6 years, 9 months ago by esprehn
Modified:
6 years, 9 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Skip lots of display checks in adjustRenderStyle when possible 1.5% of the time in the peacekeeper benchmark (and 2% of the recalcStyle time) is spent inside adjustRenderStyle. This patch is the start of trying to make adjustRenderStyle do less work in the common cases. This patch moves the logic for adjusting the style based on the display property out into a function and adds an early return for when the element is display: block and is not floating since none of the other sections of the function are needed then. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169425

Patch Set 1 #

Patch Set 2 : make it a method #

Total comments: 2

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -36 lines) Patch
M Source/core/css/resolver/StyleAdjuster.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/StyleAdjuster.cpp View 1 2 2 chunks +44 lines, -36 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
esprehn
6 years, 9 months ago (2014-03-17 18:31:19 UTC) #1
esprehn
6 years, 9 months ago (2014-03-17 18:49:07 UTC) #2
abarth-chromium
lgtm
6 years, 9 months ago (2014-03-17 20:19:38 UTC) #3
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-17 23:34:02 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/202283003/1
6 years, 9 months ago (2014-03-17 23:34:12 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-17 23:36:50 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_compile_dbg
6 years, 9 months ago (2014-03-17 23:36:50 UTC) #7
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-17 23:38:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/202283003/1
6 years, 9 months ago (2014-03-17 23:38:32 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-17 23:43:53 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_compile_dbg
6 years, 9 months ago (2014-03-17 23:43:57 UTC) #11
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-17 23:49:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/202283003/20001
6 years, 9 months ago (2014-03-17 23:50:15 UTC) #13
ojan
https://codereview.chromium.org/202283003/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp File Source/core/css/resolver/StyleAdjuster.cpp (right): https://codereview.chromium.org/202283003/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp#newcode390 Source/core/css/resolver/StyleAdjuster.cpp:390: Don't you also need to check !hasOutOfFlowPosition? I'm just ...
6 years, 9 months ago (2014-03-18 01:41:07 UTC) #14
esprehn
https://codereview.chromium.org/202283003/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp File Source/core/css/resolver/StyleAdjuster.cpp (right): https://codereview.chromium.org/202283003/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp#newcode390 Source/core/css/resolver/StyleAdjuster.cpp:390: On 2014/03/18 01:41:08, ojan wrote: > Don't you also ...
6 years, 9 months ago (2014-03-18 01:45:55 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 03:23:34 UTC) #16
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-18 03:23:35 UTC) #17
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-18 03:32:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/202283003/20001
6 years, 9 months ago (2014-03-18 03:32:34 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 03:32:44 UTC) #20
commit-bot: I haz the power
Failed to apply patch for Source/core/css/resolver/StyleAdjuster.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-18 03:32:45 UTC) #21
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-18 06:44:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/202283003/40001
6 years, 9 months ago (2014-03-18 06:44:11 UTC) #23
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 07:44:00 UTC) #24
Message was sent while issue was closed.
Change committed as 169425

Powered by Google App Engine
This is Rietveld 408576698