Commit ceb62691 authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez Committed by Commit Bot

Fix SimpleTextPathLineLayout perf test so that layout doesn't get optimized away.

Setting width to the same value causes style recalc to optimize out layout, so
this test isn't measuring what it thinks it's measuring.

Note that this change is expected to make the test slower.

Bug: 845946
Change-Id: I3a5e063ec5f41f9570cf75cf33bdc31655d3d61c
Reviewed-on: https://chromium-review.googlesource.com/1071627Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Reviewed-by: default avatarMorten Stenshorne <mstensho@chromium.org>
Commit-Queue: Emilio Cobos Álvarez <emilio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561477}
parent f0fecc81
......@@ -32,7 +32,7 @@ Cibo tollit perpetua eos an, eu sale expetendis mea, nam at assum convenire nece
style.display = "block";
style.width = "200px";
PerfTestRunner.forceLayout();
style.width = "200px";
style.width = "201px";
PerfTestRunner.forceLayout();
style.width = "200px";
PerfTestRunner.forceLayout();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment