[Webkit-unassigned] [Bug 52045] SVG image in HTML changes size as the window is resized
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 10 11:35:53 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=52045
--- Comment #5 from Beth Dakin <bdakin at apple.com> 2011-01-10 11:35:53 PST ---
(In reply to comment #4)
> This seems to be related to this code in RenderImage::computeReplacedLogicalWidth():
>
> if (m_imageResource->imageHasRelativeWidth())
> if (RenderObject* cb = isPositioned() ? container() : containingBlock()) {
> if (cb->isBox())
> m_imageResource->setImageContainerSize(IntSize(toRenderBox(cb)->availableWidth(), toRenderBox(cb)->availableHeight()));
> }
>
> which was added in http://trac.webkit.org/changeset/28856
>
> I don't grok why the image container size would be relative to the size of the containing block. Beth, do you recall?
I don't recall all of the specifics…but I think that we decided to treat SVG-as-image as a regular image with width:100%, which would calculate based on the containing block.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list