Chromium Code Reviews
DescriptionCopy StyleVisualData::m_zoom in copy constructor.
Currently StyleVisualData::m_zoom is reset to the initial zoom value
every time StyleVisualData is copied using the copy constructor. There
is no indication that this is intentional.
This patch changes the code to actually copy m_zoom instead of
resetting it. We tried to obtain a repro test case by running trybots
with a DCHECK to see if the bug is reacheable, but the trybots passed.
We also tried to find the commit that introduced this, but the code is
very old and we couldn't trace its origin.
It is most likely a copy and paste error, and even if it is not, this
code is not dependable due to copy elision.
See https://codereview.chromium.org/2687533004 for more details.
BUG=689330
Review-Url: https://codereview.chromium.org/2686013002
Cr-Commit-Position: refs/heads/master@{#449451}
Committed: https://chromium.googlesource.com/chromium/src/+/24835036681c326052b092b9697333ad9f4c2a9b
Patch Set 1 #Patch Set 2 : Rebase #Messages
Total messages: 16 (10 generated)
|