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

Issue 1749423005: Don't use a SubtreeLayoutScope object for SVG resource layout (Closed)

Created:
4 years, 9 months ago by Stephen Chennney
Modified:
4 years, 9 months ago
Reviewers:
f(malita), fs
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't use a SubtreeLayoutScope object for SVG resource layout SVG geometry depends on having its related resources laid out before it can be laid out itself. This is enforced within the layout code for the geometry, but doing so fires an assert in SubtreeLayoutScope due to the fact that objects still need layout when a child finishes. The assert is invalid, because the object is about to be laid out so will not miss layout (we layout out of tree order for resources). This patch removes the SubtreeLayoutScope for resource layout, hence avoiding the assert. R=fs@opera.com BUG=589389 Committed: https://crrev.com/c80d2b59c2357c6cae1dee9baef6fbaecb3c8136 Cr-Commit-Position: refs/heads/master@{#378858}

Patch Set 1 #

Patch Set 2 : Fix the test #

Total comments: 6

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Simplify the test #

Messages

Total messages: 32 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749423005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749423005/20001
4 years, 9 months ago (2016-03-02 17:17:30 UTC) #2
Stephen Chennney
Fixing an issue with a pattern inside a pattern that is almost but not quite ...
4 years, 9 months ago (2016-03-02 17:21:08 UTC) #4
fs
On 2016/03/02 at 17:21:08, schenney wrote: > Fixing an issue with a pattern inside a ...
4 years, 9 months ago (2016-03-02 17:52:17 UTC) #5
f(malita)
On 2016/03/02 17:21:08, Stephen Chenney wrote: > Fixing an issue with a pattern inside a ...
4 years, 9 months ago (2016-03-02 18:24:50 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-02 18:34:46 UTC) #8
Stephen Chennney
Thanks for the comments. I had the same thoughts Florin did about this not fixing ...
4 years, 9 months ago (2016-03-02 19:08:37 UTC) #9
fs
Meh, publish fail. https://codereview.chromium.org/1749423005/diff/20001/third_party/WebKit/LayoutTests/svg/custom/patterns-nested-no-geometry.svg File third_party/WebKit/LayoutTests/svg/custom/patterns-nested-no-geometry.svg (right): https://codereview.chromium.org/1749423005/diff/20001/third_party/WebKit/LayoutTests/svg/custom/patterns-nested-no-geometry.svg#newcode4 third_party/WebKit/LayoutTests/svg/custom/patterns-nested-no-geometry.svg:4: <pattern id="p1"> On 2016/03/02 at 18:24:50, ...
4 years, 9 months ago (2016-03-02 19:13:24 UTC) #10
fs
On 2016/03/02 at 18:24:50, fmalita wrote: > On 2016/03/02 17:21:08, Stephen Chenney wrote: > > ...
4 years, 9 months ago (2016-03-02 19:23:15 UTC) #11
f(malita)
On 2016/03/02 19:23:15, fs wrote: > On 2016/03/02 at 18:24:50, fmalita wrote: > > On ...
4 years, 9 months ago (2016-03-02 19:49:38 UTC) #12
fs
On 2016/03/02 at 19:49:38, fmalita wrote: > On 2016/03/02 19:23:15, fs wrote: > > On ...
4 years, 9 months ago (2016-03-02 20:05:36 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749423005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749423005/40001
4 years, 9 months ago (2016-03-02 20:43:02 UTC) #15
Stephen Chennney
This solution seems to fix the assertions simply by avoiding the assert. We do catch ...
4 years, 9 months ago (2016-03-02 20:44:45 UTC) #16
fs
https://codereview.chromium.org/1749423005/diff/40001/third_party/WebKit/LayoutTests/svg/custom/resource-nesting-layout-cycle-2-expected.html File third_party/WebKit/LayoutTests/svg/custom/resource-nesting-layout-cycle-2-expected.html (right): https://codereview.chromium.org/1749423005/diff/40001/third_party/WebKit/LayoutTests/svg/custom/resource-nesting-layout-cycle-2-expected.html#newcode1 third_party/WebKit/LayoutTests/svg/custom/resource-nesting-layout-cycle-2-expected.html:1: <!DOCTYPE html> This could be just the doctype (because ...
4 years, 9 months ago (2016-03-02 20:49:40 UTC) #17
f(malita)
Thanks, I like the latter approach better. LGTM assuming fs is on board.
4 years, 9 months ago (2016-03-02 20:55:43 UTC) #18
Stephen Chennney
https://codereview.chromium.org/1749423005/diff/40001/third_party/WebKit/LayoutTests/svg/custom/resource-nesting-layout-cycle-2-expected.html File third_party/WebKit/LayoutTests/svg/custom/resource-nesting-layout-cycle-2-expected.html (right): https://codereview.chromium.org/1749423005/diff/40001/third_party/WebKit/LayoutTests/svg/custom/resource-nesting-layout-cycle-2-expected.html#newcode1 third_party/WebKit/LayoutTests/svg/custom/resource-nesting-layout-cycle-2-expected.html:1: <!DOCTYPE html> On 2016/03/02 20:49:40, fs wrote: > This ...
4 years, 9 months ago (2016-03-02 20:57:55 UTC) #19
fs
On 2016/03/02 at 20:55:43, fmalita wrote: > Thanks, I like the latter approach better. LGTM ...
4 years, 9 months ago (2016-03-02 20:58:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749423005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749423005/60001
4 years, 9 months ago (2016-03-02 21:07:52 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-02 22:40:58 UTC) #30
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 22:42:12 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c80d2b59c2357c6cae1dee9baef6fbaecb3c8136
Cr-Commit-Position: refs/heads/master@{#378858}

Powered by Google App Engine
This is Rietveld 408576698