DescriptionSupport canvas size as default object size
By adding a defaultObjectSize parameter to
* CanvasImageSource::elementSize,
* CanvasImageSource::defaultDestinationSize
* CanvasImageSource::getSourceImageForCanvas
we can support the default sizing algorithm in HTMLImageElement for
images that lack an intrinsic size. This affects both drawImage() and
createPattern().
At time of writing there doesn't exist clear spec text for how
createPattern should behave. In
https://github.com/whatwg/html/issues/735 the behavior in this CL has
been suggested as a reasonble starting point.
BUG=581357, 475009
Committed: https://crrev.com/c1bb9d9096de137378cb1029021aed40fcbf76e4
Cr-Commit-Position: refs/heads/master@{#379818}
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 3
Patch Set 3 : Save image size on stack #Depends on Patchset: Messages
Total messages: 12 (4 generated)
|