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

Issue 216283003: Use the StyleResolverParentScope for ShadowRoot (Closed)

Created:
6 years, 9 months ago by esprehn
Modified:
6 years, 9 months ago
Reviewers:
eseidel, tasak, ojan
CC:
blink-reviews, webcomponents-bugzilla_chromium.org, sof, eae+blinkwatch, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, rune+blink, Inactive, rwlbuis
Visibility:
Public.

Description

Use the StyleResolverParentScope for ShadowRoot In r170168 I made pushing the parent scopes lazy for Elements, but I didn't make it lazy for ShadowRoot. This meant that you could trigger a style recalc on a single element in a ShadowRoot and then we'd push the scopes out of order, where we'd push all the ShadowRoots on the way down and then push all the elements at the end. I wasn't able to show any rendering errors, but by inspection it's wrong and it appears it was making us go through the ScopedStyleTree::resolveStyleCache code path more often than needed. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170312

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -13 lines) Patch
M Source/core/css/resolver/StyleResolverParentScope.h View 3 chunks +17 lines, -6 lines 0 comments Download
M Source/core/dom/shadow/ShadowRoot.cpp View 4 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
esprehn
6 years, 9 months ago (2014-03-28 04:39:56 UTC) #1
esprehn
6 years, 9 months ago (2014-03-28 04:40:03 UTC) #2
tasak
lgtm
6 years, 9 months ago (2014-03-28 09:38:10 UTC) #3
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-28 10:01:23 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/216283003/1
6 years, 9 months ago (2014-03-28 10:01:24 UTC) #5
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 11:40:00 UTC) #6
Message was sent while issue was closed.
Change committed as 170312

Powered by Google App Engine
This is Rietveld 408576698