Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Issue 2686013002: Copy StyleVisualData::m_zoom in copy constructor. (Closed)

Created:
3 years, 10 months ago by shend
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Copy 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -3 lines) Patch
M third_party/WebKit/Source/core/style/StyleVisualData.cpp View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
shend
Sasha and Alan, PTAL
3 years, 10 months ago (2017-02-08 22:43:33 UTC) #2
sashab
Love the verification patch -- because I don't trust our trybots, let's actually land that ...
3 years, 10 months ago (2017-02-09 03:13:26 UTC) #7
alancutter (OOO until 2018)
lgtm
3 years, 10 months ago (2017-02-09 04:51:54 UTC) #8
sashab
lgtm
3 years, 10 months ago (2017-02-09 04:58:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686013002/20001
3 years, 10 months ago (2017-02-09 21:26:34 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 23:12:06 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/24835036681c326052b092b96973...

Powered by Google App Engine
This is Rietveld 408576698