Return Optional<float> from SVGSVGElement::Intrinsic{Width,Height}
This provides a more succinct way to express a potentially missing value, and allows dropping the separate HasIntrinsic{Width,Height}. For the usage in SVGSVGElement::CurrentViewBoxRect, just drop the use of IntrinsicWidth/Height() since we resolve percentages against the current viewport - which matches what a plain SVGLengthContext resolve does in this case. Change-Id: I0f6b36e4f34e3ef42adc374100d6a82647301c57 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2509853Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#822661}
Showing
Please register or sign in to comment