While dictating on the web, streams of text are entered at different times. To support a sane undo policy, where undo will remove just the last stream of text, instead of all the streamed text, we need to honor the "undoable" attributed text key that tells us when to break undo grouping. <rdar://problem/16601491>
Created attachment 233789 [details] patch
Attachment 233789 [details] did not pass style-queue: ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:6046: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebKit2/UIProcess/API/mac/WKView.mm:2242: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 2 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 233790 [details] patch
Attachment 233790 [details] did not pass style-queue: ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:6046: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebKit2/UIProcess/API/mac/WKView.mm:2242: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 2 in 23 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 233794 [details] patch
Attachment 233794 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/PageClientImpl.mm:363: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:6046: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebKit2/UIProcess/API/mac/WKView.mm:2242: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebCore/editing/mac/TextUndoInsertionMarkupMac.h:44: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 4 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 233816 [details] patch
Attachment 233816 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/PageClientImpl.mm:363: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:6046: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebKit2/UIProcess/API/mac/WKView.mm:2242: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebCore/editing/mac/TextUndoInsertionMarkupMac.h:44: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 4 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 233817 [details] patch
Attachment 233817 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/PageClientImpl.mm:363: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:6046: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebKit2/UIProcess/API/mac/WKView.mm:2242: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 3 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 233818 [details] patch
Attachment 233818 [details] did not pass style-queue: ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:6046: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebKit2/UIProcess/API/mac/WKView.mm:2242: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 2 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 233818 [details] patch Looks good to me. Please make sure the EWS are all green before landing.
Comment on attachment 233818 [details] patch Attachment 233818 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/6348078684569600 New failing tests: media/W3C/video/src/src_reflects_attribute_not_source_elements.html
Created attachment 233821 [details] Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-12 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
http://trac.webkit.org/changeset/170447
Comment on attachment 233818 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=233818&action=review > Source/WebCore/editing/mac/TextUndoInsertionMarkup.h:31 > +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100 > +#define WTF_USE_INSERTION_UNDO_GROUPING 1 > +#endif // __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100 This should be in Platform.h
(In reply to comment #17) > (From update of attachment 233818 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=233818&action=review > > > Source/WebCore/editing/mac/TextUndoInsertionMarkup.h:31 > > +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100 > > +#define WTF_USE_INSERTION_UNDO_GROUPING 1 > > +#endif // __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100 > > This should be in Platform.h Done. Thanks http://trac.webkit.org/changeset/170482
(In reply to comment #18) > (In reply to comment #17) > > (From update of attachment 233818 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=233818&action=review > > > > > Source/WebCore/editing/mac/TextUndoInsertionMarkup.h:31 > > > +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100 > > > +#define WTF_USE_INSERTION_UNDO_GROUPING 1 > > > +#endif // __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100 > > > > This should be in Platform.h > > Done. Thanks > > http://trac.webkit.org/changeset/170482 Thank you!