Bug 80188

Summary: Implement NamedNodeMap::setNamedItem() in terms of Element::setAttributeNode() instead of the other way round
Product: WebKit Reporter: Caio Marcelo de Oliveira Filho <cmarcelo>
Component: New BugsAssignee: Caio Marcelo de Oliveira Filho <cmarcelo>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 75069    
Attachments:
Description Flags
Patch rniwa: review+

Description Caio Marcelo de Oliveira Filho 2012-03-02 13:37:36 PST
Implement NamedNodeMap::setNamedItem() in terms of Element::setAttributeNode() instead of the other way round
Comment 1 Caio Marcelo de Oliveira Filho 2012-03-02 13:41:09 PST
Created attachment 129951 [details]
Patch
Comment 2 Ryosuke Niwa 2012-03-02 14:13:00 PST
Comment on attachment 129951 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=129951&action=review

> Source/WebCore/dom/NamedNodeMap.cpp:108
> +    Attr* attr = static_cast<Attr*>(node);
> +    return m_element->setAttributeNode(attr, ec);

Do we really need a local variable?
Comment 3 Caio Marcelo de Oliveira Filho 2012-03-02 14:59:59 PST
Committed r109619: <http://trac.webkit.org/changeset/109619>