Remove getMutableCachedPseudoStyle
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Nov 2016 18:08:30 +0000 (18:08 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Nov 2016 18:08:30 +0000 (18:08 +0000)
commit78885d14879dab40537c04a55cfcbbdc090e364a
treebef67b0c6c94c991dceb528fe91e6d4a59f2983e
parent64ccad931be18943fb20be971181977fd6b5313f
Remove getMutableCachedPseudoStyle
https://bugs.webkit.org/show_bug.cgi?id=164819

Reviewed by Zalan Bujtas.

It is only used by styleForFirstLetter.

* rendering/RenderBlock.cpp:
(WebCore::styleForFirstLetter):

    Clone the original style before mutations.

(WebCore::RenderBlock::updateFirstLetterStyle):
(WebCore::RenderBlock::createFirstLetterRenderer):

    Since we have a clone already just move it in place.

* rendering/RenderElement.cpp:
(WebCore::RenderElement::getMutableCachedPseudoStyle): Deleted.
* rendering/RenderElement.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@208797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp
Source/WebCore/rendering/RenderElement.cpp
Source/WebCore/rendering/RenderElement.h