Make Style::Update const in RenderTreeUpdater
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Dec 2016 16:06:50 +0000 (16:06 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Dec 2016 16:06:50 +0000 (16:06 +0000)
commit9957b2da383a9dbd65cc5a7509d088e8e726197e
tree98ae25f4e4cc02e1535e2156f55a0d72f63048d9
parent73149b708675ee6f83d13211b897ee7f156aad11
Make Style::Update const in RenderTreeUpdater
https://bugs.webkit.org/show_bug.cgi?id=165845

Reviewed by Andreas Kling.

Moving style away from unique_ptrs leaves them in weird state.

* style/RenderTreeUpdater.cpp:
(WebCore::findRenderingRoots):
(WebCore::RenderTreeUpdater::commit):
(WebCore::RenderTreeUpdater::updateElementRenderer):

    Clone the style instead of moving it. This is not meaningfully more expensive.
    Remove null checks, style is never null.

* style/RenderTreeUpdater.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@209802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/style/RenderTreeUpdater.cpp
Source/WebCore/style/RenderTreeUpdater.h