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

Issue 341773004: Use available width for replaced element with intrinsic ratio but no dimensions (Closed)

Created:
6 years, 6 months ago by davve
Modified:
6 years, 6 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Use available width for replaced element with intrinsic ratio but no dimensions Prior to this patch, we walked up the ancestor chain to find a specified width for replaced content with intrinsic ratio but no intrinsic size nor any specified dimensions. This is clearly wrong when the containing block has no specified width but an implicitly set width through the constraint equation. In that case we would walk past the containing block and possible find an ancestor with specified width to size against. An other illustration of why it's wrong in the context of a stf container where we would possibly go outside the stf container to fetch a width. Both scenarios illustrated by tests. After this patch, we instead always use the available width of the container, to properly size inside a container with no specified size. http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width BUG=387705 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176929

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Add test #

Patch Set 4 : Add one more test; this time svg inside stf container #

Patch Set 5 : Rebase and add NeedsRebaseline to zoom test with off-by-one (or so) errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -33 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/inline-svg-use-available-width.html View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/inline-svg-use-available-width-in-stf.html View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderReplaced.cpp View 1 2 3 4 2 chunks +1 line, -33 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
davve
Philip, one more SVG sizing CSS thingy. I'm not sure why the code was so ...
6 years, 6 months ago (2014-06-23 14:44:04 UTC) #1
pdr.
On 2014/06/23 14:44:04, David Vest wrote: > Philip, one more SVG sizing CSS thingy. I'm ...
6 years, 6 months ago (2014-06-24 20:53:47 UTC) #2
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 6 months ago (2014-06-24 20:53:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davve@opera.com/341773004/60001
6 years, 6 months ago (2014-06-24 20:54:49 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-24 22:34:54 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-24 23:00:34 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/13185)
6 years, 6 months ago (2014-06-24 23:00:35 UTC) #7
davve
The CQ bit was checked by davve@opera.com
6 years, 6 months ago (2014-06-25 14:00:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davve@opera.com/341773004/80001
6 years, 6 months ago (2014-06-25 14:00:56 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-25 15:06:12 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-25 16:08:55 UTC) #11
Message was sent while issue was closed.
Change committed as 176929

Powered by Google App Engine
This is Rietveld 408576698