commit | 52d55d36c78e4772e0e3499409dc6f6dcabde00e | [log] [tgz] |
---|---|---|
author | Yoshifumi Inoue <yosin@chromium.org> | Thu Oct 05 08:59:01 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 05 08:59:01 2017 |
tree | b2f535898e550feb9257d91fe44d7711258b5dea | |
parent | 4a3dd816b81f097697bce64b6e8b14e5e288e5bf [diff] |
Make InsertText command not to split SPAN element containing TAB character Before this patch, "InsertText" command splits SPAN element containing TAB character when inserting text into it. For example: Before: <span>	a|c</span> Command: insertText "B" After: <span>	a</span>B|<span>c</span> This behavior is introduced by the patch[1], which replaces "class=apple-tab-span" to "style=white-space:pre". This patch changes |IsTabHTMLSpanElement()| to check "white-space:pre" CSS property to make "InsertText" command not to split SPAN element containing TAB character with "white-space: pre". Note: "apple-tab-span" CSS class is MacOS specific feature[2]. On MacOS, UITextView puts following HTML into pasteboard: <style>.Apple-Tab-Span { white-space: pre; }</style> <span class=Apple-Tab-Span>	</span> [1] http://crrev.com/2718543003 Remove EditingAppleTabSpan class handling [2] https://www.cocoanetics.com/2013/06/apple-tab-span/ Bug: 741826 Change-Id: I42d8d388e306b613fbe8ffa614b9e974db254c22 Reviewed-on: https://chromium-review.googlesource.com/697044 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#506683}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .