RenderInline::clone() should return RenderPtr.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jan 2014 09:47:01 +0000 (09:47 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jan 2014 09:47:01 +0000 (09:47 +0000)
commitb61b2479c93948c50d4951f8b867e87199a4216b
tree260b9750c9998b185234b095e427637abe7710e5
parent8417eac7833858ae02cc42ffd3cb99f5aba4db30
RenderInline::clone() should return RenderPtr.
<https://webkit.org/b/126514>

Patch by Gurpreet Kaur <k.gurpreet@samsung.com> on 2014-01-06
Reviewed by Antti Koivisto.

* rendering/RenderInline.h:
* rendering/RenderInline.cpp:
(WebCore::RenderInline::clone):

    Tweaked to return RenderPtr<RenderInline>.

(WebCore::RenderInline::splitInlines):

    Store cloned RenderInlines in RenderPtrs. Use leakPtr() to sink
    them into ownership-taking APIs that still use raw pointers.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderInline.cpp
Source/WebCore/rendering/RenderInline.h