Don't compute selection painting info when we don't have selection.
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 May 2015 18:56:15 +0000 (18:56 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 May 2015 18:56:15 +0000 (18:56 +0000)
commitb1a418dd7afe6656927c51fd8b4f7cb61950d66c
tree708c571c4fb5ae5452fa4b8216c5c5607f2ce0ab
parent550b58897fd7ac6d944a7fc4d1d93af070b34b15
Don't compute selection painting info when we don't have selection.
https://bugs.webkit.org/show_bug.cgi?id=144920
<rdar://problem/20919920>

Reviewed by Simon Fraser.

* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::paint):

Just set the selection paint style to the text paint style when we don't have a selection
at all. Computing the selection style takes time in the case where a ::selection pseudo is
used on the page, so we don't want to waste time computing that info unless it's actually
needed.

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