Micro-optimize RenderBoxModelObject::computedCSSPadding().
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Jan 2014 02:31:25 +0000 (02:31 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Jan 2014 02:31:25 +0000 (02:31 +0000)
commit03d39b5dc3f8b9c750347f0c9af26d42c1a7e242
tree31112081a8707be4c63e10be4389a8422a316e6f
parentd624a0271233b20a0fcb5695683d06bf02602e8a
Micro-optimize RenderBoxModelObject::computedCSSPadding().
<https://webkit.org/b/127208>

Make computedCSSPadding() take the Length as a const reference
to avoid creating a temporary copy. This was showing up (0.2%)
on DoYouEvenBench.

Reviewed by Anders Carlsson.

* rendering/RenderBoxModelObject.h:
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::computedCSSPadding):

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