DescriptionPrepare SVGImage for the default sizing algorithm
This patch aligns sizing in SVGImage with sizing done in
LayoutBoxModelObject::calculateImageIntrinsicDimensions()
Split SVGImage::containerSize() into two parts. On part that
calculates the concrete size.
The other part return containerSize(), with concrete object size as
fall-back for direct SVGImage::draw() users (webgl being the only one
known).
The long term plan is to only keep this sizing implementation and
remove the one in LayoutBoxModelObject. As long as SVG is the only
user of the complex version of the algorithm it makes sense to keep it
as SVG-only code.
BUG=581357
Committed: https://crrev.com/48a3d424ac967a77a648f12e5ac5058d7cef8b90
Cr-Commit-Position: refs/heads/master@{#376965}
Patch Set 1 #Patch Set 2 : Push contain constraint to a later patch; inline and simplify code #Patch Set 3 : Fix issue with containerSize and direct SVGImage::draw() call #Patch Set 4 : Rebase #Patch Set 5 : Use has{Width,Height} properties instead of checking larger than zero. #
Total comments: 4
Patch Set 6 : Add comment about what the concrete object size is in SVGImage context. #
Dependent Patchsets: Messages
Total messages: 21 (8 generated)
|