Two separate functions would be clearer than one function with an argument.
Created attachment 296443 [details] Patch
Comment on attachment 296443 [details] Patch Need to fix GTK, EFL, and Windows builds. Not sure that writePlainTextSmartReplace is the ideal name. Need to think about how to say this in normal colloquial language. Maybe writePlainTextWithSmartPasteFlag.
Thanks for tackling this.
Created attachment 301115 [details] Patch
Comment on attachment 301115 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301115&action=review Thanks for working on refactorings! I think I would name this function "writePlainTextWithSmartReplace". When you upload your next patch, be sure to set the cq? Bugzilla flag to request the patch be committed. > Source/WebCore/ChangeLog:4 > + Created a second function that handle smart replaceing > + and edited the original one to handle regular replacing only. Again, this should be the title of the bug. Your explanation is good, but move it down below, between the "Reviewed by" line and the "No new tests" line.
Created attachment 301292 [details] Patch
Created attachment 312027 [details] Patch
Comment on attachment 312027 [details] Patch This seems like a good refactoring. Unfortunately the patch no longer applies. Please post an updated version.