Don't use intrinsic width if our container's width is zero.

Since at least r798 we use a replaced element's intrinsic width if its
containing block has a width of zero. As a result our rendering of
width100percent-image.html has disagreed with all other browsers
(IE10, FF29, and Opera(Presto)) and
we display replaced elements when they should be invisible.

If our container has zero width then let our width be zero too.

BUG=235189

Review URL: https://codereview.chromium.org/253743008

git-svn-id: svn://svn.chromium.org/blink/trunk@173212 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Respect SVG fragment identifiers in <img> src attribute https://bugs.webkit.org/show_bug.cgi?id=129387

When providing an SVG image for a given renderer, check that the URL used to load
that image is taken into account in case it featured a fragment identifier, ensuring
that the CSS :target pseudo-class is correctly handled for SVG resources. This patch
is specific to <img> elements, specific support will also need to be added for various
CSS properties that support SVG images.

Based on the webkit patch by Antoine Quint <graouts@webkit.org>.

BUG=369513, 156584

Review URL: https://codereview.chromium.org/180973005

git-svn-id: svn://svn.chromium.org/blink/trunk@173213 bbb929c8-8fbe-4397-9dbb-9b2b20218538