Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r174807 - REGRESSION (r169024): Undetermined text is not displa…
…yed in the search field of Adobe Help Website https://bugs.webkit.org/show_bug.cgi?id=137679 rdar://problem/18450335 Reviewed by Enrica Casucci. Source/WebCore: Test: platform/mac/editing/input/selected-composed-text-painting.html * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::paint): We do not paint selection beckground for unconfirmed text with underlines, so we should use a regular style for text painting, as well. LayoutTests: * platform/mac/editing/input/selected-composed-text-painting-expected.html: Added. * platform/mac/editing/input/selected-composed-text-painting.html: Added. Canonical link: https://commits.webkit.org/154760.124@webkitgtk/2.6 git-svn-id: https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.6@174980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
aa4e493
commit 413ae57
Showing
5 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
LayoutTests/platform/mac/editing/input/selected-composed-text-painting-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<meta charset="utf-8"> | ||
<body> | ||
<p>Test that selected unconfirmed text ignores ::selection rules. | ||
To test manually, type anything using Kotoeri Hiragana, and press down arrow. The text should not become invisible.</p> | ||
<input id="test" type="text"> | ||
<script> | ||
|
||
var test = document.getElementById('test'); | ||
test.focus(); | ||
|
||
var markedText = textInputController.makeAttributedString("ひらがな"); | ||
markedText.addAttribute("NSUnderline", 2); | ||
textInputController.setMarkedText(markedText, 0, 4); | ||
|
||
</script> | ||
</body> | ||
</html> |
26 changes: 26 additions & 0 deletions
26
LayoutTests/platform/mac/editing/input/selected-composed-text-painting.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<meta charset="utf-8"> | ||
<body> | ||
<style> | ||
::selection { | ||
background: #447099; | ||
color: #fff | ||
} | ||
|
||
</style> | ||
<p>Test that selected unconfirmed text ignores ::selection rules. | ||
To test manually, type anything using Kotoeri Hiragana, and press down arrow. The text should not become invisible.</p> | ||
<input id="test" type="text"> | ||
<script> | ||
|
||
var test = document.getElementById('test'); | ||
test.focus(); | ||
|
||
var markedText = textInputController.makeAttributedString("ひらがな"); | ||
markedText.addAttribute("NSUnderline", 2); | ||
textInputController.setMarkedText(markedText, 0, 4); | ||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters