DescriptionAtomic scaling in ImageResource::imageSize()
Since https://codereview.chromium.org/1634133003/ there is only
hasRelativeSize(), no hasRelative{Width,Height}(). The code affected
by this patch was written under the latter assumption. With only
hasRelativeSize() the code can be simplified a bit to either scale or
return early.
Also remove useless ASSERT. |multiplier| is always non-equal to one in
that code branch so the assert doesn't check anything meaningful.
BUG=581357
Committed: https://crrev.com/c09e2ebef160275d02ebdfbe3615378c81f04523
Cr-Commit-Position: refs/heads/master@{#373496}
Patch Set 1 #Patch Set 2 : Use integer literals for floats when possible; remove useless assert #Messages
Total messages: 17 (9 generated)
|