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

Issue 186453002: [FastTextAutosizer] Keep m_blocksForFingerprint and m_fingerprints in sync (Closed)

Created:
6 years, 9 months ago by pdr.
Modified:
6 years, 9 months ago
Reviewers:
skobes
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Visibility:
Public.

Description

[FastTextAutosizer] Keep m_blocksForFingerprint and m_fingerprints in sync This patch keeps m_blocksForFingerprint in sync with m_fingerprints when adding a new entry to m_fingerprints. Here's a quick summary about these maps: m_blocksForFingerprint maps Fingerprint -> list of RenderBlocks m_fingerprints maps RenderObject -> Fingerprint Previously, when adding a block to m_fingerprints we could neglect to update m_blocksForFingerprint. By removing entries from m_blocksForFingerprint before registering a new block fingerprint, we prevent a crash on [1]. [1] http://www.chicagotribune.com/news/sns-wp-blm-news-bc-inventor01-20140301,0,255272.story TEST=Added an assert that crashes all over our layouttests without this fix. Manually verified [1] no longer crashes. BUG=348463 NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168533

Patch Set 1 #

Patch Set 2 : Cleanup, add an assert #

Patch Set 3 : Refactr #

Total comments: 4

Patch Set 4 : Address reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M Source/core/rendering/FastTextAutosizer.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/rendering/FastTextAutosizer.cpp View 1 2 3 3 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
pdr.
Still working on a test and understanding how this happens. This does fix the crash ...
6 years, 9 months ago (2014-03-04 07:15:58 UTC) #1
skobes
lgtm
6 years, 9 months ago (2014-03-04 18:50:29 UTC) #2
pdr.
On 2014/03/04 18:50:29, skobes wrote: > lgtm PTAL. I've updated the patch to be faster. ...
6 years, 9 months ago (2014-03-05 03:35:35 UTC) #3
skobes
https://codereview.chromium.org/186453002/diff/20002/Source/core/rendering/FastTextAutosizer.cpp File Source/core/rendering/FastTextAutosizer.cpp (right): https://codereview.chromium.org/186453002/diff/20002/Source/core/rendering/FastTextAutosizer.cpp#newcode677 Source/core/rendering/FastTextAutosizer.cpp:677: return true; It's a bit silly to have a ...
6 years, 9 months ago (2014-03-05 04:12:21 UTC) #4
pdr.
Updated! https://codereview.chromium.org/186453002/diff/20002/Source/core/rendering/FastTextAutosizer.cpp File Source/core/rendering/FastTextAutosizer.cpp (right): https://codereview.chromium.org/186453002/diff/20002/Source/core/rendering/FastTextAutosizer.cpp#newcode677 Source/core/rendering/FastTextAutosizer.cpp:677: return true; On 2014/03/05 04:12:22, skobes wrote: > ...
6 years, 9 months ago (2014-03-05 04:20:31 UTC) #5
skobes
lgtm
6 years, 9 months ago (2014-03-05 06:58:14 UTC) #6
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 9 months ago (2014-03-05 07:32:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/186453002/50001
6 years, 9 months ago (2014-03-05 07:33:08 UTC) #8
pdr.
On 2014/03/05 07:33:08, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 9 months ago (2014-03-05 19:36:05 UTC) #9
pdr.
The CQ bit was unchecked by pdr@chromium.org
6 years, 9 months ago (2014-03-05 19:36:24 UTC) #10
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 9 months ago (2014-03-05 19:36:32 UTC) #11
pdr.
The CQ bit was unchecked by pdr@chromium.org
6 years, 9 months ago (2014-03-05 19:36:33 UTC) #12
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 9 months ago (2014-03-05 19:36:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/186453002/50001
6 years, 9 months ago (2014-03-05 20:57:07 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 21:04:22 UTC) #15
Message was sent while issue was closed.
Change committed as 168533

Powered by Google App Engine
This is Rietveld 408576698