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

Issue 2598923002: Update transform paint property's transform-offset on element size changes (Closed)

Created:
3 years, 12 months ago by pdr.
Modified:
3 years, 12 months ago
Reviewers:
Xianzhu
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update transform paint property's transform-offset on element size changes If a transform (or motion path) and transform-origin are present, an object's transform paint property can depend on the object's size. This patch has two changes to support changing transform-origin values: 1) transform-origin is only created if it will be used. For example, the origin will be zero if just will-change has created a transform paint property. 2) When an object's size changes and it has a transform that could depend on the paint offset, the paint properties are marked as needing an update. BUG=645667 TEST=fast/events/touch/touch-rect-assert-first-layer-special.html with --enable-slimming-paint-invalidation CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/700fe29521a77a433f07b85fda61a35609c46cf2 Cr-Commit-Position: refs/heads/master@{#440439}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Only create transform-origin when needed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -21 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 1 chunk +13 lines, -6 lines 1 comment Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 4 chunks +15 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 2 chunks +73 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
pdr.
3 years, 12 months ago (2016-12-22 03:59:27 UTC) #2
Xianzhu
lgtm https://codereview.chromium.org/2598923002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2598923002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1712 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1712: } else if (hasTransformRelatedProperty()) { I think the ...
3 years, 12 months ago (2016-12-22 05:10:11 UTC) #6
pdr.
On 2016/12/22 at 05:10:11, wangxianzhu wrote: > lgtm > > https://codereview.chromium.org/2598923002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp > File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): ...
3 years, 12 months ago (2016-12-22 05:18:20 UTC) #9
pdr.
On 2016/12/22 at 05:18:20, pdr (OOO Dec 23 to Jan 2) wrote: > These are ...
3 years, 12 months ago (2016-12-22 05:25:25 UTC) #10
Xianzhu
On 2016/12/22 05:18:20, pdr (OOO Dec 23 to Jan 2) wrote: > On 2016/12/22 at ...
3 years, 12 months ago (2016-12-22 05:34:02 UTC) #11
pdr.
PTAL The latest patch only creates transform offsets if a transform exists that will use ...
3 years, 12 months ago (2016-12-22 06:55:20 UTC) #13
Xianzhu
lgtm
3 years, 12 months ago (2016-12-22 16:43:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2598923002/20001
3 years, 12 months ago (2016-12-22 16:44:02 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 12 months ago (2016-12-22 16:48:06 UTC) #23
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/700fe29521a77a433f07b85fda61a35609c46cf2 Cr-Commit-Position: refs/heads/master@{#440439}
3 years, 12 months ago (2016-12-22 16:50:08 UTC) #25
Xianzhu
https://codereview.chromium.org/2598923002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2598923002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1715 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1715: // See: PaintPropertyTreeBuilder::updateTransform(...). Just thought of 1. perspective-origin has ...
3 years, 12 months ago (2016-12-22 17:28:42 UTC) #26
pdr.
On 2016/12/22 at 17:28:42, wangxianzhu wrote: > https://codereview.chromium.org/2598923002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp > File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): > > https://codereview.chromium.org/2598923002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1715 ...
3 years, 12 months ago (2016-12-22 22:08:42 UTC) #27
pdr.
3 years, 12 months ago (2016-12-22 22:25:40 UTC) #28
Message was sent while issue was closed.
On 2016/12/22 at 22:08:42, pdr (OOO Dec 23 to Jan 2) wrote:
> On 2016/12/22 at 17:28:42, wangxianzhu wrote:
> >
https://codereview.chromium.org/2598923002/diff/20001/third_party/WebKit/Sour...
> > File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right):
> > 
> >
https://codereview.chromium.org/2598923002/diff/20001/third_party/WebKit/Sour...
> > third_party/WebKit/Source/core/layout/LayoutBox.cpp:1715: // See:
PaintPropertyTreeBuilder::updateTransform(...).
> > Just thought of
> > 1. perspective-origin has the same issue.
> > 2. the above condition also covers other percent/calculated values of
transforms, which should be mentioned in the comments.
> > 
> > Can you address these, and perhaps add tests?
> 
> Done in https://codereview.chromium.org/2584653002

err... done in https://codereview.chromium.org/2602453002

Powered by Google App Engine
This is Rietveld 408576698