RenderLayer::currentTransform computes a pixel snapped rect it doesn't use.
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 May 2015 21:00:01 +0000 (21:00 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 May 2015 21:00:01 +0000 (21:00 +0000)
commit3497dddb539be1401a67c2aa7269be52e9ea23d2
tree2c45656e6f7004b4dcd4df77c48b2ae534b5d438
parentec3073f47573a3ccb4af5d92bcdf6fda63315b2c
RenderLayer::currentTransform computes a pixel snapped rect it doesn't use.
https://bugs.webkit.org/show_bug.cgi?id=144708

Reviewed by Simon Fraser.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::currentTransform):

Only compute a pixel snapped rect if we actually end up needing it. The common case
is that this rect is not needed, so pushing it inside the two if statements
speeds up the common case.

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