[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 Review URL: https://codereview.chromium.org/186453002 git-svn-id: svn://svn.chromium.org/blink/trunk@168533 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment