Bug 158283 - Use HashMap::ensure() in DocumentOrderedMap::add()
Summary: Use HashMap::ensure() in DocumentOrderedMap::add()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-01 16:43 PDT by Chris Dumez
Modified: 2016-06-01 17:22 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.55 KB, patch)
2016-06-01 16:44 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-06-01 16:43:08 PDT
Use HashMap::ensure() in DocumentOrderedMap::add() to avoid constructing a MapEntry if the key is already present in the HashMap.
Comment 1 Chris Dumez 2016-06-01 16:44:42 PDT
Created attachment 280278 [details]
Patch
Comment 2 WebKit Commit Bot 2016-06-01 17:22:40 PDT
Comment on attachment 280278 [details]
Patch

Clearing flags on attachment: 280278

Committed r201579: <http://trac.webkit.org/changeset/201579>
Comment 3 WebKit Commit Bot 2016-06-01 17:22:44 PDT
All reviewed patches have been landed.  Closing bug.