commit | 75a7b12e587c28ac101464935f5e724fab6b6ec5 | [log] [tgz] |
---|---|---|
author | rune <rune@opera.com> | Thu Sep 29 10:40:09 2016 |
committer | Commit bot <commit-bot@chromium.org> | Thu Sep 29 10:42:43 2016 |
tree | ce62839796b88e188d39d7fdefa17f8670eff877 | |
parent | f918c9e416908b9f5f15bdafd1ab195dd5a25877 [diff] |
Avoid creating consecutive whitespace renderers. In textLayoutObjectIsNeeded(), return false if we are a whitespace-only text node, and our previous LayoutObject sibling is a whitespace renderer. This avoids for instance creating a consecutive list of whitespace renderers when we have multiple display:none sibling elements. This change makes [1] take ~900ms instead of ~2600ms on my computer. [1] https://bugs.chromium.org/p/chromium/issues/attachmentText?aid=8037 BUG=399816 Review-Url: https://codereview.chromium.org/2369963005 Cr-Commit-Position: refs/heads/master@{#421794}