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

Issue 212813004: HashMap misuse in ScrollingCoordinator (Closed)

Created:
6 years, 9 months ago by Mikhail
Modified:
6 years, 9 months ago
Reviewers:
Nico
CC:
blink-reviews, blink-layers+watch_chromium.org, kenneth.christiansen, Nico, eseidel
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

HashMap misuse in ScrollingCoordinator The aux 'makeLayerChildFrameMap' function used in the ScrollingCoordinator should not be allowed to add empty key values to the given LayerFrameMap, as this is misuse of WTF::HashMap which leads to undefined behavior (for example it was the root cause of http://code.google.com/p/chromium/issues/detail?id=310975 ) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170150

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 chunk +7 lines, -6 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
Mikhail
PTAL
6 years, 9 months ago (2014-03-26 15:01:39 UTC) #1
Nico
https://codereview.chromium.org/212813004/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/212813004/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode398 Source/core/page/scrolling/ScrollingCoordinator.cpp:398: map->add(containingLayer, Vector<const LocalFrame*>()).storedValue->value.append(child); Should add() ASSERT that the key ...
6 years, 9 months ago (2014-03-26 15:48:14 UTC) #2
Mikhail
On 2014/03/26 15:48:14, Nico wrote: > https://codereview.chromium.org/212813004/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp > File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): > > https://codereview.chromium.org/212813004/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode398 > ...
6 years, 9 months ago (2014-03-26 16:05:57 UTC) #3
Nico
lgtm
6 years, 9 months ago (2014-03-26 16:08:19 UTC) #4
Mikhail
The CQ bit was checked by mikhail.pozdnyakov@intel.com
6 years, 9 months ago (2014-03-27 09:03:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhail.pozdnyakov@intel.com/212813004/1
6 years, 9 months ago (2014-03-27 09:03:52 UTC) #6
commit-bot: I haz the power
6 years, 9 months ago (2014-03-27 09:04:11 UTC) #7
Message was sent while issue was closed.
Change committed as 170150

Powered by Google App Engine
This is Rietveld 408576698