Changeset 207834 in webkit
- Timestamp:
- Oct 25, 2016 12:22:12 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r207830 r207834 1 2016-10-25 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r207578. 4 https://bugs.webkit.org/show_bug.cgi?id=163962 5 6 Broke quip.com so that user can no longer type a space 7 (Requested by rniwa on #webkit). 8 9 Reverted changeset: 10 11 "Add a plain space instead of between text nodes" 12 https://bugs.webkit.org/show_bug.cgi?id=123163 13 http://trac.webkit.org/changeset/207578 14 1 15 2016-10-25 Ryan Haddad <ryanhaddad@apple.com> 2 16 -
trunk/LayoutTests/accessibility/mac/find-and-replace-match-capitalization-expected.txt
r207578 r207834 1 The Test testTEST.1 The Test test TEST. 2 2 3 3 This tests that find and replace will match the capitalization of the replaced word. … … 6 6 7 7 8 PASS document.getElementById('text').innerHTML is 'The 9 PASS document.getElementById('text').innerHTML is 'The Testtest high.'10 PASS document.getElementById('text').innerHTML is 'The Test testTEST.'8 PASS document.getElementById('text').innerHTML is 'The Test jumped high.' 9 PASS document.getElementById('text').innerHTML is 'The Test test high.' 10 PASS document.getElementById('text').innerHTML is 'The Test test TEST.' 11 11 PASS successfullyParsed is true 12 12 -
trunk/LayoutTests/accessibility/mac/find-and-replace-match-capitalization.html
r207578 r207834 21 21 // 'Man' is capitalized, so the replaced text should end up capitalized. 22 22 var result = text.selectTextWithCriteria("AXSelectTextAmbiguityResolutionClosestToSelection", "man", "test"); 23 shouldBe("document.getElementById('text').innerHTML", "'The 23 shouldBe("document.getElementById('text').innerHTML", "'The Test jumped high.'"); 24 24 25 25 // 'jumped' is not capitalized so the text should not be capitalized. 26 26 result = text.selectTextWithCriteria("AXSelectTextAmbiguityResolutionClosestToSelection", "jumped", "Test"); 27 shouldBe("document.getElementById('text').innerHTML", "'The Testtest high.'");27 shouldBe("document.getElementById('text').innerHTML", "'The Test test high.'"); 28 28 29 29 // The replacement text was all caps, so don't change based on the existing text. 30 30 result = text.selectTextWithCriteria("AXSelectTextAmbiguityResolutionClosestToSelection", "high", "TEST"); 31 shouldBe("document.getElementById('text').innerHTML", "'The Test testTEST.'");31 shouldBe("document.getElementById('text').innerHTML", "'The Test test TEST.'"); 32 32 33 33 } -
trunk/LayoutTests/accessibility/mac/select-text/select-text-135575-expected.txt
r207578 r207834 1 1 The quick brown fox jumps over the lazy dog. 2 2 3 TEXT2: 3 TEXT2: THE quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 4 4 5 5 This tests the ability to select and replace text with respect to selection. -
trunk/LayoutTests/accessibility/mac/select-text/select-text-7-expected.txt
r207578 r207834 1 The 1 The slow brown fox jumps over the lazy dog. 2 2 3 3 TEXT2: The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. -
trunk/LayoutTests/accessibility/mac/select-text/select-text-8-expected.txt
r207578 r207834 1 The quick brown 1 The quick brown cat jumps over the lazy dog. 2 2 3 3 TEXT2: The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. -
trunk/LayoutTests/accessibility/mac/select-text/select-text-9-expected.txt
r207578 r207834 1 The quick 1 The quick Brown fox jumps over the lazy dog. 2 2 3 3 TEXT2: The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. -
trunk/LayoutTests/editing/mac/spelling/autocorrection-blockquote-crash-expected.txt
r207578 r207834 9 9 10 10 would this 11 test 11 test notational 12 12 make a difference? 13 13 -
trunk/LayoutTests/editing/pasteboard/paste-text-003-expected.txt
r207578 r207834 107 107 This test copies and pastes "is a tide in the affairs of men,\nWhich taken at the flood leads on to fortune.\nOmitted" twice. 108 108 109 There 109 There is a tide in the affairs of men, 110 110 Which taken at the flood leads on to fortune. 111 111 Omittedis a tide in the affairs of men, … … 114 114 Is bound in shallows and in miseries. 115 115 execCopyCommand: <div id="test" class="editing">There is a tide in the affairs of men, <div class="editing">Which taken at the flood leads on to fortune. <div class="editing">Omitted, all the voyage of their life, <div class="editing">Is bound in shallows and in miseries. </div> </div> </div> </div> 116 execPasteCommand: <div id="test" class="editing">There 117 execPasteCommand: <div id="test" class="editing">There 116 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,<div class="editing">Which taken at the flood leads on to fortune.</div><div class="editing"><div class="editing">Omitted, all the voyage of their life, <div class="editing">Is bound in shallows and in miseries. </div> </div> </div> </div> 117 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,<div class="editing">Which taken at the flood leads on to fortune.</div><div class="editing"><div class="editing">Omittedis a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div><div class="editing">Omitted, all the voyage of their life, <div class="editing">Is bound in shallows and in miseries. </div> </div> </div> </div> -
trunk/LayoutTests/platform/gtk/editing/execCommand/paste-1-expected.txt
r207578 r207834 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 12 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document givenAction:WebViewInsertActionPasted 13 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 14 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 15 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/platform/gtk/editing/pasteboard/paste-2-expected.txt
r207578 r207834 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 12 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document givenAction:WebViewInsertActionPasted 13 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 14 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 15 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/platform/gtk/editing/pasteboard/unrendered-br-expected.txt
r207578 r207834 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 4 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 17 of #text > DIV > DIV > BODY > HTML > #document to 17 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document toDOMRange:range from 17 of #text > DIV > DIV > BODY > HTML > #document to 17 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 7 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 8 7 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/platform/mac/editing/execCommand/paste-1-expected.txt
r207578 r207834 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 12 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document givenAction:WebViewInsertActionPasted 13 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 14 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 15 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/platform/mac/editing/pasteboard/paste-2-expected.txt
r207578 r207834 11 11 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 12 12 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document givenAction:WebViewInsertActionPasted 13 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 14 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > BODY > HTML > #document to 7 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 13 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > BODY > HTML > #document to 8 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 11 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 15 14 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 16 15 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/platform/mac/editing/pasteboard/unrendered-br-expected.txt
r207578 r207834 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 4 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 17 of #text > DIV > DIV > BODY > HTML > #document to 17 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document toDOMRange:range from 17 of #text > DIV > DIV > BODY > HTML > #document to 17 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 7 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 8 7 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/Source/WebCore/ChangeLog
r207833 r207834 1 2016-10-25 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r207578. 4 https://bugs.webkit.org/show_bug.cgi?id=163962 5 6 Broke quip.com so that user can no longer type a space 7 (Requested by rniwa on #webkit). 8 9 Reverted changeset: 10 11 "Add a plain space instead of between text nodes" 12 https://bugs.webkit.org/show_bug.cgi?id=123163 13 http://trac.webkit.org/changeset/207578 14 1 15 2016-10-25 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WebCore/editing/CompositeEditCommand.cpp
r207698 r207834 919 919 VisiblePosition visibleUpstreamPos(Position(textNode, upstream)); 920 920 VisiblePosition visibleDownstreamPos(Position(textNode, downstream)); 921 922 Node* nextSibling = textNode->nextSibling(); 921 923 922 String string = text.substring(upstream, length); 924 923 String rebalancedString = stringWithRebalancedWhitespace(string, 925 924 // FIXME: Because of the problem mentioned at the top of this function, we must also use nbsps at the start/end of the string because 926 925 // this function doesn't get all surrounding whitespace, just the whitespace in the current text node. 927 isStartOfParagraph(visibleUpstreamPos) || !upstream, 928 (isEndOfParagraph(visibleDownstreamPos) || (unsigned)downstream == text.length()) 929 && !(nextSibling && nextSibling->isTextNode() && downcast<Text>(nextSibling)->data().at(0) != ' ')); 926 isStartOfParagraph(visibleUpstreamPos) || upstream == 0, 927 isEndOfParagraph(visibleDownstreamPos) || (unsigned)downstream == text.length()); 930 928 931 929 if (string != rebalancedString) -
trunk/Source/WebCore/editing/htmlediting.cpp
r207578 r207834 398 398 } 399 399 400 String stringWithRebalancedWhitespace(const String& string, bool startIsStartOfParagraph, bool shouldEmitNonBreakingSpaceBeforeEnd)400 String stringWithRebalancedWhitespace(const String& string, bool startIsStartOfParagraph, bool endIsEndOfParagraph) 401 401 { 402 402 StringBuilder rebalancedString; … … 411 411 } 412 412 LChar selectedWhitespaceCharacter; 413 // We need to ensure there is no next sibling text node. See https://bugs.webkit.org/show_bug.cgi?id=123163 414 if (previousCharacterWasSpace || (!i && startIsStartOfParagraph) || (i == length - 1 && shouldEmitNonBreakingSpaceBeforeEnd)) { 413 if (previousCharacterWasSpace || (!i && startIsStartOfParagraph) || (i == length - 1 && endIsEndOfParagraph)) { 415 414 selectedWhitespaceCharacter = noBreakSpace; 416 415 previousCharacterWasSpace = false; -
trunk/Source/WebCore/editing/htmlediting.h
r207578 r207834 193 193 bool isAmbiguousBoundaryCharacter(UChar); 194 194 195 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagraph, bool shouldEmitNonBreakingSpaceBeforeEnd);195 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagraph, bool endIsEndOfParagraph); 196 196 const String& nonBreakingSpaceString(); 197 197
Note: See TracChangeset
for help on using the changeset viewer.