Changeset 53678 in webkit
- Timestamp:
- Jan 21, 2010 10:21:55 PM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r53671 r53678 1 2010-01-21 James Robinson <jamesr@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Bumps the refcount when WebNode::toElement/toConstElement are called. 6 https://bugs.webkit.org/show_bug.cgi?id=33977 7 8 Ensures that when a wrapper around a WebNode is create via the 9 toElement() or toConstElement() calls that the refcount on the WebNode 10 is increased, by forcing a call to WebNode::assign(). This is needed 11 so that the following code: 12 { 13 WebNode n = someNode(); 14 WebElement e = n.toElement<WebElement>(); 15 } 16 does not decrease the overall refcount on the Node that someNode() 17 returns. 18 19 This caused crashes in the 'Save page as..' feature. 20 21 * public/WebNode.h: 22 (WebKit::WebNode::toElement): 23 (WebKit::WebNode::toConstElement): 24 1 25 2010-01-21 Michael Nordman <michaeln@google.com> 2 26 -
trunk/WebKit/chromium/public/WebNode.h
r52774 r53678 105 105 { 106 106 T res; 107 res. m_private = m_private;107 res.WebNode::assign(*this); 108 108 return res; 109 109 } … … 112 112 { 113 113 T res; 114 res. m_private = m_private;114 res.WebNode::assign(*this); 115 115 return res; 116 116 }
Note: See TracChangeset
for help on using the changeset viewer.