[webkit-reviews] review granted: [Bug 122368] Use more references instead of pointers in DocumentOrderedMap : [Attachment 213431] Cleanup
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 4 19:22:48 PDT 2013
Andreas Kling <akling at apple.com> has granted Ryosuke Niwa <rniwa at webkit.org>'s
request for review:
Bug 122368: Use more references instead of pointers in DocumentOrderedMap
https://bugs.webkit.org/show_bug.cgi?id=122368
Attachment 213431: Cleanup
https://bugs.webkit.org/attachment.cgi?id=213431&action=review
------- Additional Comments from Andreas Kling <akling at apple.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=213431&action=review
Super neato! r=me
> Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp:76
> + Node* node = document->documentNamedItem(*atomicPropertyName);
This should be an Element*. That'll remove a branch from hasTagName() below.
> Source/WebCore/dom/DocumentOrderedMap.cpp:109
> + Map::iterator it = m_map.find(&key);
I'd use auto for this.
> Source/WebCore/dom/DocumentOrderedMap.cpp:130
> + Map::iterator it = m_map.find(&key);
Ditto.
> Source/WebCore/dom/DocumentOrderedMap.cpp:194
> + Map::iterator it = m_map.find(&key);
Ditto.
> Source/WebCore/dom/DocumentOrderedMap.h:96
> + Map::const_iterator it = m_map.find(&id);
Ditto.
> Source/WebCore/dom/DocumentOrderedMap.h:107
> + Map::const_iterator it = m_map.find(&id);
Ditto.
More information about the webkit-reviews
mailing list