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

Issue 772803002: Delay construction of StyleResolverState until after style sharing. (Closed)

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

Description

Delay construction of StyleResolverState until after style sharing. In some (synthetic) cases, style sharing is so efficient that the construction of StyleResolverState negatively impacts performance. Since we only need an ElementResolveContext (plus some parent information) to determine style sharing, we can delay the StyleResolverState construction until after that. R=rune@opera.com BUG=437281 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186346

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -9 lines) Patch
M Source/core/css/resolver/ElementResolveContext.h View 1 chunk +1 line, -0 lines 1 comment Download
M Source/core/css/resolver/StyleResolver.cpp View 1 chunk +5 lines, -3 lines 1 comment Download
M Source/core/css/resolver/StyleResolverState.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleResolverState.cpp View 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
andersr
https://codereview.chromium.org/772803002/diff/1/Source/core/css/resolver/ElementResolveContext.h File Source/core/css/resolver/ElementResolveContext.h (right): https://codereview.chromium.org/772803002/diff/1/Source/core/css/resolver/ElementResolveContext.h#newcode39 Source/core/css/resolver/ElementResolveContext.h:39: explicit ElementResolveContext(const Document&); I wonder if this is even ...
6 years ago (2014-12-02 13:02:12 UTC) #1
rune
On 2014/12/02 at 13:02:12, andersr wrote: > https://codereview.chromium.org/772803002/diff/1/Source/core/css/resolver/ElementResolveContext.h > File Source/core/css/resolver/ElementResolveContext.h (right): > > https://codereview.chromium.org/772803002/diff/1/Source/core/css/resolver/ElementResolveContext.h#newcode39 ...
6 years ago (2014-12-02 13:16:28 UTC) #2
andersr
On 2014/12/02 13:16:28, rune wrote: > On 2014/12/02 at 13:02:12, andersr wrote: > > > ...
6 years ago (2014-12-02 13:30:18 UTC) #3
andersr
https://codereview.chromium.org/772803002/diff/1/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/772803002/diff/1/Source/core/css/resolver/StyleResolver.cpp#newcode572 Source/core/css/resolver/StyleResolver.cpp:572: StyleResolverState state(document(), elementContext, defaultParent); I ran blink_perf.css locally on ...
6 years ago (2014-12-02 14:08:17 UTC) #4
rune
lgtm
6 years ago (2014-12-02 20:04:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/772803002/1
6 years ago (2014-12-02 21:07:22 UTC) #7
commit-bot: I haz the power
6 years ago (2014-12-02 23:10:57 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186346

Powered by Google App Engine
This is Rietveld 408576698