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

Issue 196143004: Fix usage of pseudo style cache (Closed)

Created:
6 years, 9 months ago by Timothy Loh
Modified:
6 years, 9 months ago
Reviewers:
esprehn
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix usage of pseudo style cache This patch fixes our usage of the pseudo style cache so that we will use a cached pseudo style when creating pseudo-elements if possible and so that we cache pseudo styles even if they don't get a renderer. We also move the logic for having styles with animations or transitions be non-sharable from RenderStyle::isSharable to the StyleAdjuster, so that animated pseudo-elements will have their parent's style correctly marked as non-sharable. As a result, a pseudo-element without a renderer (e.g. display:none or content:none) to will correctly return its computed style to getComputedStyle. This also fixes a regression where the pseudo style cache can end up very large when its parent style is shared. BUG=345653 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169619

Patch Set 1 : #

Patch Set 2 : check for cached pseudo style and mark pseudo styles with animations as unique #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -28 lines) Patch
M LayoutTests/fast/css-generated-content/pseudo-animation-before-onload.html View 1 3 chunks +14 lines, -22 lines 0 comments Download
M LayoutTests/fast/css-generated-content/pseudo-animation-before-onload-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/css/getComputedStyle/getComputedStyle-with-pseudo-element-without-renderer.html View 1 chunk +16 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleAdjuster.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 1 chunk +7 lines, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Timothy Loh
6 years, 9 months ago (2014-03-12 01:59:08 UTC) #1
esprehn
lgtm
6 years, 9 months ago (2014-03-12 05:28:02 UTC) #2
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-12 05:31:03 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timloh@chromium.org/196143004/20001
6 years, 9 months ago (2014-03-12 05:31:07 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 07:28:10 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel
6 years, 9 months ago (2014-03-12 07:28:11 UTC) #6
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-12 09:40:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timloh@chromium.org/196143004/20001
6 years, 9 months ago (2014-03-12 09:40:41 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 10:16:26 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel
6 years, 9 months ago (2014-03-12 10:16:28 UTC) #10
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-12 10:18:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timloh@chromium.org/196143004/20001
6 years, 9 months ago (2014-03-12 10:19:05 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 10:58:06 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel
6 years, 9 months ago (2014-03-12 10:58:07 UTC) #14
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-12 23:19:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timloh@chromium.org/196143004/20001
6 years, 9 months ago (2014-03-12 23:19:24 UTC) #16
Timothy Loh
The CQ bit was unchecked by timloh@chromium.org
6 years, 9 months ago (2014-03-12 23:24:58 UTC) #17
Timothy Loh
On 2014/03/12 23:24:58, Timothy Loh wrote: > The CQ bit was unchecked by mailto:timloh@chromium.org Looks ...
6 years, 9 months ago (2014-03-17 04:53:09 UTC) #18
Timothy Loh
On 2014/03/17 04:53:09, Timothy Loh wrote: > On 2014/03/12 23:24:58, Timothy Loh wrote: > > ...
6 years, 9 months ago (2014-03-20 00:16:25 UTC) #19
esprehn
Can you explain the n^2 here? Why does this get slow? I don't think it ...
6 years, 9 months ago (2014-03-20 00:44:48 UTC) #20
Timothy Loh
Updated patch as per discussion on IRC.
6 years, 9 months ago (2014-03-20 04:12:39 UTC) #21
esprehn
On 2014/03/20 04:12:39, Timothy Loh wrote: > Updated patch as per discussion on IRC. Perfect, ...
6 years, 9 months ago (2014-03-20 04:17:14 UTC) #22
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-20 04:18:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timloh@chromium.org/196143004/40001
6 years, 9 months ago (2014-03-20 04:18:41 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 04:51:02 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-20 04:51:02 UTC) #26
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-20 04:54:17 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timloh@chromium.org/196143004/40001
6 years, 9 months ago (2014-03-20 04:54:21 UTC) #28
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 05:29:44 UTC) #29
Message was sent while issue was closed.
Change committed as 169619

Powered by Google App Engine
This is Rietveld 408576698