Eliminate a request for layout every time an item is added to the stage of the graphi...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 Nov 2015 05:51:27 +0000 (05:51 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 Nov 2015 05:51:27 +0000 (05:51 +0000)
commitb669c4f0a030abdef74d1fe28fdcacf15f6f97ac
tree94da11e3945454b662dbe02ef0a1354aebb862a6
parent3424706915173ba29460e310609762bea0255301
Eliminate a request for layout every time an item is added to the stage of the graphics benchmark
https://bugs.webkit.org/show_bug.cgi?id=151289

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2015-11-13
Reviewed by Simon Fraser.

Cache the stage size when it is created instead of requesting every time
an object is added via clientWidth and clientHeight.

* Animometer/resources/extensions.js:
(Insets.elementPadding):
* Animometer/tests/resources/stage.js:
(Stage):
(Stage.prototype.get size):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/Animometer/resources/extensions.js
PerformanceTests/Animometer/tests/resources/stage.js
PerformanceTests/ChangeLog