Bug 109756

Summary: Remove Element::getAttributeItem() overload that returned a mutable Attribute*.
Product: WebKit Reporter: Andreas Kling <kling>
Component: DOMAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, d-r, fmalita, kling, mifenton, ojan.autocc, pdr, schenney, tkent, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 109505    
Attachments:
Description Flags
Patch koivisto: review+

Andreas Kling
Reported 2013-02-13 15:16:19 PST
It's a bit goofy to have an Element::getAttributeItem() that converts m_elementData to UniqueElementData. This happens unintentionally in a few places where callers simply want to read an attribute value but are calling through an Element*.
Attachments
Patch (5.10 KB, patch)
2013-02-13 15:18 PST, Andreas Kling
koivisto: review+
Andreas Kling
Comment 1 2013-02-13 15:18:24 PST
Antti Koivisto
Comment 2 2013-02-13 16:24:21 PST
Comment on attachment 188195 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=188195&action=review > Source/WebCore/dom/Element.h:287 > const Attribute* getAttributeItem(const QualifiedName&) const; Some day these should get WebKit style names.
Andreas Kling
Comment 3 2013-02-13 17:14:10 PST
Note You need to log in before you can comment on or make changes to this bug.