NEW 158287
Consolidate usage of NSAttachmentChar
https://bugs.webkit.org/show_bug.cgi?id=158287
Summary Consolidate usage of NSAttachmentChar
chris fleizach
Reported 2016-06-01 17:24:01 PDT
There are 3 places where NSAttachmentCharacter lives in WebCore
Attachments
Patch (3.47 KB, patch)
2016-06-01 17:47 PDT, chris fleizach
no flags
Patch (3.48 KB, patch)
2016-06-01 17:50 PDT, chris fleizach
darin: review+
BUG 158287 (93.64 KB, patch)
2016-06-12 17:04 PDT, Abu Naser Saifullah
no flags
http://www.bugs.webkit.org (5 bytes, text/plain)
2016-06-12 17:12 PDT, Abu Naser Saifullah
cfleizach: review-
cfleizach: commit-queue-
Radar WebKit Bug Importer
Comment 1 2016-06-01 17:24:59 PDT
chris fleizach
Comment 2 2016-06-01 17:47:13 PDT
WebKit Commit Bot
Comment 3 2016-06-01 17:48:21 PDT
Attachment 280286 [details] did not pass style-queue: ERROR: Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:60: Alphabetical sorting problem. [build/include_order] [4] ERROR: Source/WebCore/ChangeLog:9: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 2 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
chris fleizach
Comment 4 2016-06-01 17:50:57 PDT
WebKit Commit Bot
Comment 5 2016-06-01 17:53:03 PDT
Attachment 280287 [details] did not pass style-queue: ERROR: Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:60: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Darin Adler
Comment 6 2016-06-02 11:19:09 PDT
Comment on attachment 280287 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=280287&action=review > Source/WebCore/platform/mac/WebNSAttributedStringExtras.h:33 > +#if TARGET_OS_IOS > +enum { > + NSAttachmentCharacter = 0xfffc /* To denote attachments. */ > +}; > +#endif It seems strange for us to define this inside the WebCore namespace. This is defined in NSTextAttachment.h; can we use that instead? Is that not available on iOS?
chris fleizach
Comment 7 2016-06-02 11:19:44 PDT
(In reply to comment #6) > Comment on attachment 280287 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=280287&action=review > > > Source/WebCore/platform/mac/WebNSAttributedStringExtras.h:33 > > +#if TARGET_OS_IOS > > +enum { > > + NSAttachmentCharacter = 0xfffc /* To denote attachments. */ > > +}; > > +#endif > > It seems strange for us to define this inside the WebCore namespace. > > This is defined in NSTextAttachment.h; can we use that instead? Is that not > available on iOS? Correct, not available on iOS for some reason
Abu Naser Saifullah
Comment 8 2016-06-12 17:04:49 PDT
Abu Naser Saifullah
Comment 9 2016-06-12 17:12:02 PDT
Abu Naser Saifullah
Comment 10 2016-06-12 17:15:04 PDT
Abu Naser Saifullah
Comment 11 2016-06-12 17:16:20 PDT
Abu Naser Saifullah
Comment 12 2016-06-12 17:17:34 PDT
chris fleizach
Comment 13 2016-06-12 22:41:00 PDT
Darin Adler
Comment 14 2016-06-16 20:25:21 PDT
Comment on attachment 280287 [details] Patch We should not define this in the WebCore namespace. We should just define it in the global namespace on iOS to match Mac, and then we can remove it when eventually it shows up in the iOS SDK as well.
Note You need to log in before you can comment on or make changes to this bug.