WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
6705
use PassRefPtr in more of the basic DOM operations
https://bugs.webkit.org/show_bug.cgi?id=6705
Summary
use PassRefPtr in more of the basic DOM operations
Darin Adler
Reported
2006-01-21 19:46:52 PST
I was looking at some bug (can't remember which) and came to the conclusion that to fix it I would want to change cloneNode to return PassRefPtr as we've long planned. When I started on that, the patch got too big, so I decided to start a bit smaller by changing the other basic DOM operations to use PassRefPtr instead of raw pointers.
Attachments
less raw pointer, more PassRefPtr
(87.48 KB, patch)
2006-01-21 19:47 PST
,
Darin Adler
andersca
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2006-01-21 19:47:30 PST
Created
attachment 5824
[details]
less raw pointer, more PassRefPtr
Anders Carlsson
Comment 2
2006-01-22 04:54:35 PST
Comment on
attachment 5824
[details]
less raw pointer, more PassRefPtr Looks good, just a few stylistic comments: * In ContainerNodeImpl::insertBefore: - newParent->removeChild( child, exceptioncode ); - if (exceptioncode) + newParent->removeChild( child, ec ); + if (ec) the spacing should be fixed in the call to removeChild ContainerNodeImpl::removeChild: + if (next) next->setPreviousSibling(prev); + if (prev) prev->setNextSibling(next); + if (m_firstChild == child) m_firstChild = next; + if (m_lastChild == child) m_lastChild = prev; the statements should be on a separate line from the expressions, like in ContainerNodeImpl::replaceChild * HTMLOptGroupElementImpl::insertBefore: the spacing in the function call declaration should be fixed
Lucas Forschler
Comment 3
2019-02-06 09:02:30 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug