DescriptionHTMLImageElement.natural{Width,Height} should return intrinsic dimensions
HTML says:
"The IDL attributes naturalWidth and naturalHeight must return the
intrinsic width and height of the image, in CSS pixels, if the image is
available, or else 0."
Change HTMLImageElement::natural{Width,Height} to request the intrinsic
size from ImageResource::imageSizeForRenderer by passing IntrinsicSize as
the third parameter. This makes the attributes return more appropriate
values for SVG-images in <img>.
BUG=396955
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179030
Patch Set 1 #
Total comments: 6
Patch Set 2 : Test tweaks. #Patch Set 3 : Two more spots... #
Messages
Total messages: 10 (0 generated)
|