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

Issue 2476923002: [RFC] Move StyleTransformData to ComputedStyle top-level (Closed)

Created:
4 years, 1 month ago by fs
Modified:
3 years, 10 months ago
Reviewers:
sashab, pdr., esprehn
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews, kennetht, napper, slangley
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[RFC] Move StyleTransformData to ComputedStyle top-level This moves the StyleTransformData structure to the top-level of ComputedStyle (i.e directly referenced from said class.) This is primarily to avoid the high cost of copying the outer StyleRareNonInheritedData. Also move state for: * The properties: 'transform-style', 'backface-visibility', 'perspective' and 'perspective-origin' to StyleTransformData as well since they have a strong transform affinity. * The derived flag m_hasInlineTransform, since it's directly dependent on the presence of a non-'none' 'transform'. * m_isStackingContext (up) to ComputedStyle to avoid it invoking CoW of a StyleRareNonInheritedData object when one isn't needed. BUG=670375, 369942

Patch Set 1 #

Patch Set 2 : Add export for StylePath #

Patch Set 3 : Fix diffing #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Add export for StyleTransformData #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -121 lines) Patch
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 18 chunks +43 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 10 chunks +13 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/style/StylePath.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h View 1 2 6 chunks +1 line, -13 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp View 1 2 13 chunks +18 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleTransformData.h View 1 2 3 4 5 3 chunks +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleTransformData.cpp View 1 2 1 chunk +27 lines, -7 lines 0 comments Download

Messages

Total messages: 33 (28 generated)
fs
So the trade-off here should be fairly obvious - one pointer size-increase vs. less to ...
4 years ago (2016-12-02 21:16:01 UTC) #29
esprehn
So many other things still get you a StyleRareNonInheritedData (ex. will-change, opacity, ...) that I ...
4 years ago (2016-12-02 21:26:18 UTC) #30
fs
On 2016/12/02 at 21:26:18, esprehn wrote: > So many other things still get you a ...
4 years ago (2016-12-02 21:37:08 UTC) #31
sashab
+some people that might be interested in this patch Although I appreciate what you're trying ...
4 years ago (2016-12-04 23:01:27 UTC) #32
sashab
4 years ago (2016-12-04 23:24:06 UTC) #33
So, at least for the moment, not lgtm.

Powered by Google App Engine
This is Rietveld 408576698