Use FloatRect/FloatSize for conveying viewBox/viewport
Rather than passing a pile of floats, pass FloatRect or FloatSize as appropriate. This better matches the values that are actually passed and doesn't require expanding earlier than necessary. Turn the align_ == kSvgPreserveaspectratioUnknown check in SVGPreserveAspectRatio::ComputeTransform(...) into a DCHECK since this is not a value that should ever be set. Change-Id: I84c1fd5dc6509abb60595479dfa5fb2e96175d95 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490004 Auto-Submit: Fredrik Söderquist <fs@opera.com> Commit-Queue: Stephen Chenney <schenney@chromium.org> Reviewed-by:Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#819507}
Showing
Please register or sign in to comment