Bug 115340

Summary: DocumentOrderedMap should use AtomicString instead of AtomicStringImpl*
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED WONTFIX    
Severity: Normal CC: benjamin, commit-queue, darin, esprehn+autocc, kling, koivisto, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Cleanup none

Ryosuke Niwa
Reported 2013-04-28 17:53:22 PDT
Many member functions of DocumentOrderedMap take AtomicStringImpl* but they should take AtomicString instead. Furthermore, hash maps in DocumentOrderedMap could simply use AtomicString, instead of AtomicStringImpl*, as keys.
Attachments
Cleanup (8.28 KB, patch)
2013-04-28 17:54 PDT, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2013-04-28 17:54:03 PDT
Ryosuke Niwa
Comment 2 2013-04-28 19:17:00 PDT
Ben says this is intentional.
Darin Adler
Comment 3 2013-04-28 22:34:55 PDT
I think the reason we do it this way is that we don’t want additional ref/deref of all the strings.
Note You need to log in before you can comment on or make changes to this bug.