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

Issue 1973153004: Fix FontCacheKey-keyed HashMap usage in core/css (Closed)

Created:
4 years, 7 months ago by tzik
Modified:
4 years, 7 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix FontCacheKey-keyed HashMap usage in core/css HashMap to cache fonts in core/css associates FontCacheKey, however they use hashed value of FontCacheKey. That causes incorrect cache hit or assertion failure on hash collision case or on 0 or -1 hash value. BUG=611669 Committed: https://crrev.com/cf88b677e190c6b306b9721a267ab55c4e869e14 Cr-Commit-Position: refs/heads/master@{#393744}

Patch Set 1 #

Patch Set 2 : +test. revert the fix to see bot results #

Patch Set 3 : readd the fix #

Total comments: 2

Patch Set 4 : +comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -5 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSFontFaceSource.h View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp View 2 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSegmentedFontFace.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSSegmentedFontFace.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973153004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973153004/1
4 years, 7 months ago (2016-05-13 04:39:55 UTC) #2
tzik
PTAL
4 years, 7 months ago (2016-05-13 04:59:01 UTC) #5
kouhei (in TOK)
On 2016/05/13 04:59:01, tzik wrote: > PTAL Would you create a bug and possibly a ...
4 years, 7 months ago (2016-05-13 05:00:53 UTC) #6
kochi
On 2016/05/13 04:59:01, tzik wrote: > PTAL Sorry, I'm not familiar with font caching code ...
4 years, 7 months ago (2016-05-13 05:02:44 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 06:06:31 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973153004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973153004/20001
4 years, 7 months ago (2016-05-13 07:13:10 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973153004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973153004/40001
4 years, 7 months ago (2016-05-13 07:28:43 UTC) #14
tzik
Filed a bug, and added a test for CSSFontFaceSource fix. PS2 should fail on the ...
4 years, 7 months ago (2016-05-13 07:31:26 UTC) #15
drott
Not a core owner, but LGTM for the change and test, thanks for fixing this!
4 years, 7 months ago (2016-05-13 08:40:06 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 09:02:34 UTC) #18
kouhei (in TOK)
lgtm https://codereview.chromium.org/1973153004/diff/40001/third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp File third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp (right): https://codereview.chromium.org/1973153004/diff/40001/third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp#newcode47 third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp:47: DummyFontFaceSource fontFaceSource; // Even if the hash value ...
4 years, 7 months ago (2016-05-13 09:06:40 UTC) #19
tzik
https://codereview.chromium.org/1973153004/diff/40001/third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp File third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp (right): https://codereview.chromium.org/1973153004/diff/40001/third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp#newcode47 third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp:47: DummyFontFaceSource fontFaceSource; On 2016/05/13 at 09:06:40, kouhei wrote: > ...
4 years, 7 months ago (2016-05-14 11:57:16 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973153004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973153004/60001
4 years, 7 months ago (2016-05-14 11:57:33 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-14 20:30:56 UTC) #25
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/cf88b677e190c6b306b9721a267ab55c4e869e14 Cr-Commit-Position: refs/heads/master@{#393744}
4 years, 7 months ago (2016-05-14 20:33:04 UTC) #27
eae
4 years, 7 months ago (2016-05-16 16:30:51 UTC) #28
Message was sent while issue was closed.
Awesome, thank you!

Powered by Google App Engine
This is Rietveld 408576698