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

Issue 2835153002: Fix percent height calc for svg docs. (Closed)

Created:
3 years, 8 months ago by szager1
Modified:
3 years, 7 months ago
Reviewers:
pdr.
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/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix percent height calc for svg docs. Previously, percent-height svg elements in a pure-svg doc would get their size based on the LayoutView's logical height from the previous layout pass. In practice, this didn't show up much because FrameView always does at least one extra initial layout pass to add and then subtract scrollbars. The extra layout pass would cause the percent height descendants to get the right size. Setting overlay scrollbars on the FrameView eliminates the extra layout passes and allows the bug to manifest. Review-Url: https://codereview.chromium.org/2835153002 Cr-Commit-Position: refs/heads/master@{#469327} Committed: https://chromium.googlesource.com/chromium/src/+/cad9446c3ae02d9d97d4e0223afa6002eeb2e48a

Patch Set 1 #

Patch Set 2 : test #

Total comments: 6

Patch Set 3 : Use AccessSVGExtensions rather than iterating over children #

Patch Set 4 : Switched implementation to avoid double layout #

Patch Set 5 : ViewLogicalHeightForPercentages #

Patch Set 6 : Remove unnecessary invalidations #

Total comments: 1

Patch Set 7 : Split percent height test into percent-height.svg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/svg/custom/percent-height.svg View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/percent-height-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 43 (26 generated)
szager1
3 years, 8 months ago (2017-04-25 17:27:12 UTC) #4
pdr.
https://codereview.chromium.org/2835153002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg File third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg (right): https://codereview.chromium.org/2835153002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg#newcode3 third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg:3: if (self.internals) This test doesn't fail for me without ...
3 years, 8 months ago (2017-04-26 04:56:47 UTC) #7
szager1
https://codereview.chromium.org/2835153002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg File third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg (right): https://codereview.chromium.org/2835153002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg#newcode3 third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg:3: if (self.internals) On 2017/04/26 04:56:47, pdr. wrote: > This ...
3 years, 8 months ago (2017-04-26 12:11:36 UTC) #12
pdr.
On 2017/04/26 at 12:11:36, szager wrote: > As I mentioned in another comment, this doesn't ...
3 years, 8 months ago (2017-04-27 05:25:01 UTC) #16
szager1
On 2017/04/27 05:25:01, pdr. wrote: > On 2017/04/26 at 12:11:36, szager wrote: > > As ...
3 years, 7 months ago (2017-04-27 09:36:21 UTC) #17
pdr.
Can you describe how to reproduce this in a browser? I think this may not ...
3 years, 7 months ago (2017-04-28 00:57:19 UTC) #18
szager1
On 2017/04/28 00:57:19, pdr (OOO until May 3rd) wrote: > Can you describe how to ...
3 years, 7 months ago (2017-04-28 10:42:29 UTC) #19
szager1
On 2017/04/28 10:42:29, szager1 wrote: > On 2017/04/28 00:57:19, pdr (OOO until May 3rd) wrote: ...
3 years, 7 months ago (2017-04-28 10:43:06 UTC) #20
pdr.
On 2017/04/28 at 10:43:06, szager wrote: > On 2017/04/28 10:42:29, szager1 wrote: > > On ...
3 years, 7 months ago (2017-04-28 20:16:49 UTC) #21
szager1
On 2017/04/28 20:16:49, pdr (OOO until May 3rd) wrote: > On 2017/04/28 at 10:43:06, szager ...
3 years, 7 months ago (2017-04-28 20:19:25 UTC) #22
pdr.
On 2017/04/28 at 20:19:25, szager wrote: > It's always exactly one layout behind. Oh I ...
3 years, 7 months ago (2017-04-28 20:22:29 UTC) #23
pdr.
Looked into this a little more and I agree with your analysis. I'm not a ...
3 years, 7 months ago (2017-04-29 03:38:38 UTC) #24
szager1
On 2017/04/29 03:38:38, pdr (OOO until May 3rd) wrote: > Looked into this a little ...
3 years, 7 months ago (2017-04-30 12:24:14 UTC) #27
szager1
Switched to ViewLogicalHeightForPercentages; PTAL
3 years, 7 months ago (2017-04-30 18:51:27 UTC) #32
pdr.
Lgtm with a minimal test https://codereview.chromium.org/2835153002/diff/100001/third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg File third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg (right): https://codereview.chromium.org/2835153002/diff/100001/third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg#newcode3 third_party/WebKit/LayoutTests/svg/custom/masking-clipping-hidpi.svg:3: if (self.internals) Can you ...
3 years, 7 months ago (2017-05-03 15:27:23 UTC) #37
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/2835153002/120001
3 years, 7 months ago (2017-05-04 12:33:12 UTC) #40
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 14:28:41 UTC) #43
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/cad9446c3ae02d9d97d4e0223afa...

Powered by Google App Engine
This is Rietveld 408576698