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

Issue 20560008: Don't assume so easily that RenderStyle data can be shared. (Closed)

Created:
7 years, 4 months ago by mstensho (USE GERRIT)
Modified:
7 years, 4 months ago
Reviewers:
eae, ojan
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Don't assume so easily that RenderStyle data can be shared. An element can only share RenderStyle data with another element if BOTH are cacheable. The element that's already in the cache is obviously cacheable, but we also need to figure out whether the element that wants to use data from the cache is cachable. Additionally, get rid of the Element* argument from applyMatchedProperties(), since it's already part of the state object passed to that method. BUG=236329 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154999

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -6 lines) Patch
A LayoutTests/fast/css/identical-logical-height-decl.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/identical-logical-height-decl-expected.html View 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 5 chunks +7 lines, -5 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
mstensho (USE GERRIT)
7 years, 4 months ago (2013-07-26 13:12:42 UTC) #1
eae
LGTM
7 years, 4 months ago (2013-07-26 15:26:08 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/20560008/1
7 years, 4 months ago (2013-07-26 15:26:43 UTC) #3
commit-bot: I haz the power
Change committed as 154999
7 years, 4 months ago (2013-07-26 17:47:47 UTC) #4
ojan
https://codereview.chromium.org/20560008/diff/1/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/20560008/diff/1/Source/core/css/resolver/StyleResolver.cpp#newcode1202 Source/core/css/resolver/StyleResolver.cpp:1202: && MatchedPropertiesCache::isCacheable(element, state.style(), state.parentStyle())) { Not a big deal, ...
7 years, 4 months ago (2013-07-28 17:42:31 UTC) #5
mstensho (USE GERRIT)
On 2013/07/28 17:42:31, ojan wrote: > https://codereview.chromium.org/20560008/diff/1/Source/core/css/resolver/StyleResolver.cpp > File Source/core/css/resolver/StyleResolver.cpp (right): > > https://codereview.chromium.org/20560008/diff/1/Source/core/css/resolver/StyleResolver.cpp#newcode1202 > ...
7 years, 4 months ago (2013-07-29 08:29:26 UTC) #6
ojan
On 2013/07/29 08:29:26, Morten Stenshorne wrote: > That sounds good to me as well, but ...
7 years, 4 months ago (2013-07-29 17:11:50 UTC) #7
mstensho (USE GERRIT)
On 2013/07/29 17:11:50, ojan wrote: > On 2013/07/29 08:29:26, Morten Stenshorne wrote: > > That ...
7 years, 4 months ago (2013-07-29 19:54:56 UTC) #8
ojan
7 years, 4 months ago (2013-07-29 20:10:51 UTC) #9
Message was sent while issue was closed.
On 2013/07/29 19:54:56, Morten Stenshorne wrote:
> On 2013/07/29 17:11:50, ojan wrote:
> > On 2013/07/29 08:29:26, Morten Stenshorne wrote:
> > > That sounds good to me as well, but this patch has already landed. Is
there
> > > anything I should do about this now?
> > 
> > A followup patch if you're willing. Uploaded to a new issue.
> 
> Sure - will do. Assuming that I should re-use the bug number, though.

Yup. Thanks.

Powered by Google App Engine
This is Rietveld 408576698