Move GTK WebKit1 code to std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=129675

Reviewed by Anders Carlsson.

Replace uses of OwnPtr and PassOwnPtr in GTK-specific WebKit1 code with std::unique_ptr.

* WebCoreSupport/AcceleratedCompositingContext.h:
* WebCoreSupport/NavigatorContentUtilsClientGtk.cpp:
* WebCoreSupport/NavigatorContentUtilsClientGtk.h:
* webkit/webkitfavicondatabase.cpp:
(getIconPixbufCancelled):
(webkit_favicon_database_get_favicon_pixbuf):
* webkit/webkitwebview.cpp:
(webkit_web_view_init):
* webkit/webkitwebviewprivate.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Optimize collectionLast() and collectionTraverseBackward() in LiveNodeList
https://bugs.webkit.org/show_bug.cgi?id=129775

Reviewed by Ryosuke Niwa.

Check the LiveNodeList type if it is HTMLTagNodeListType and ClassNodeListType then
apply inlined matching methods for each type.

* dom/LiveNodeList.cpp:
(WebCore::lastMatchingElement): Added.
(WebCore::previousMatchingElement): Added.
(WebCore::traverseMatchingElementsBackward): Added.
(WebCore::LiveNodeList::collectionLast): Apply lastMatchingElement() with LiveNodeList type.
(WebCore::LiveNodeList::collectionTraverseBackward): Apply traverseMatchingElementsBackward()
with LiveNodeList type.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165254 268f45cc-cd09-0410-ab3c-d52691b4dbfc