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

Issue 1604993003: Set intrinsic size for inline SVG earlier (Closed)

Created:
4 years, 11 months ago by davve
Modified:
4 years, 11 months ago
Reviewers:
fs
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), 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

Set intrinsic size for inline SVG earlier LayoutReplaced has a m_intrinsicSize that's updated when computing logical widths and heights (and only if needed; specified style makes it not being set at all). But m_intrinsicSize can be used earlier that that, when computing preferred widths for the container, see LayoutReplaced::computeIntrinsicLogicalWidths called from LayoutReplaced::computePreferredLogicalWidths(). This patch computes the intrinsic size in the constructor to avoid returning the stale default size. BUG=468897 Committed: https://crrev.com/545b2183e1b4ee3eb433537f9a6386b5337d6588 Cr-Commit-Position: refs/heads/master@{#370388}

Patch Set 1 #

Patch Set 2 : Don't override default intrinsic size with an empty size #

Patch Set 3 : Avoid isEmpty(). Set individual width/height values. Add test for this. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -17 lines) Patch
A third_party/WebKit/LayoutTests/svg/in-html/inside-inline-block.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/in-html/inside-inline-block-expected.html View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp View 1 2 2 chunks +17 lines, -17 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
davve
PTAL
4 years, 11 months ago (2016-01-19 16:12:23 UTC) #2
fs
lgtm
4 years, 11 months ago (2016-01-19 16:23:05 UTC) #3
davve
Had to do some extra work for the default intrinsic size to keep working. I'm ...
4 years, 11 months ago (2016-01-20 12:13:58 UTC) #4
fs
On 2016/01/20 at 12:13:58, davve wrote: > Had to do some extra work for the ...
4 years, 11 months ago (2016-01-20 13:12:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1604993003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1604993003/40001
4 years, 11 months ago (2016-01-20 13:21:38 UTC) #7
davve
On 2016/01/20 13:12:20, fs wrote: > Roger. Got me thinking of crbug.com/475009, but that's probably ...
4 years, 11 months ago (2016-01-20 13:33:19 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-20 14:45:23 UTC) #9
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 14:46:21 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/545b2183e1b4ee3eb433537f9a6386b5337d6588
Cr-Commit-Position: refs/heads/master@{#370388}

Powered by Google App Engine
This is Rietveld 408576698