Bug 138760 - [iOS] CoreText and CoreUI SPI are not available in public SDK
Summary: [iOS] CoreText and CoreUI SPI are not available in public SDK
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad iOS 8.1
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords:
Depends on:
Blocks: 136487 138802
  Show dependency treegraph
 
Reported: 2014-11-14 15:48 PST by Daniel Bates
Modified: 2014-11-18 12:40 PST (History)
10 users (show)

See Also:


Attachments
Patch (16.50 KB, patch)
2014-11-14 16:43 PST, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch (16.37 KB, patch)
2014-11-17 12:25 PST, Daniel Bates
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2014-11-14 15:48:09 PST
The iOS WebKit port makes use of the private headers from the CoreText and CoreUI frameworks. Towards building the port using the public SDK, we should forward declare the applicable SPI from these frameworks.
Comment 1 Daniel Bates 2014-11-14 16:43:50 PST
Created attachment 241642 [details]
Patch
Comment 2 Daniel Bates 2014-11-17 12:25:36 PST
Created attachment 241733 [details]
Patch
Comment 3 WebKit Commit Bot 2014-11-17 12:28:06 PST
Attachment 241733 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/spi/cocoa/CoreTextSPI.h:38:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
ERROR: Source/WebCore/platform/spi/cocoa/CoreTextSPI.h:39:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
ERROR: Source/WebCore/platform/spi/cocoa/CoreTextSPI.h:40:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
ERROR: Source/WebCore/platform/spi/cocoa/CoreTextSPI.h:41:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Total errors found: 4 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 David Kilzer (:ddkilzer) 2014-11-17 13:24:24 PST
Comment on attachment 241733 [details]
Patch

r=me
Comment 5 David Kilzer (:ddkilzer) 2014-11-17 13:26:18 PST
(In reply to comment #3)
> Attachment 241733 [details] did not pass style-queue:
> 
> 
> ERROR: Source/WebCore/platform/spi/cocoa/CoreTextSPI.h:38:  enum members
> should use InterCaps with an initial capital letter. 
> [readability/enum_casing] [4]
> ERROR: Source/WebCore/platform/spi/cocoa/CoreTextSPI.h:39:  enum members
> should use InterCaps with an initial capital letter. 
> [readability/enum_casing] [4]
> ERROR: Source/WebCore/platform/spi/cocoa/CoreTextSPI.h:40:  enum members
> should use InterCaps with an initial capital letter. 
> [readability/enum_casing] [4]
> ERROR: Source/WebCore/platform/spi/cocoa/CoreTextSPI.h:41:  enum members
> should use InterCaps with an initial capital letter. 
> [readability/enum_casing] [4]
> Total errors found: 4 in 9 files
> 
> 
> If any of these errors are false positives, please file a bug against
> check-webkit-style.

I wonder if it would be worth disabling this check for *SPI.h headers?  Seems to be a common theme that non-WebKit teams at Apple format their constants this way.
Comment 6 Daniel Bates 2014-11-17 13:42:18 PST
(In reply to comment #5)
> [...]
> > ERROR: Source/WebCore/platform/spi/cocoa/CoreTextSPI.h:41:  enum members
> > should use InterCaps with an initial capital letter. 
> > [readability/enum_casing] [4]
> > Total errors found: 4 in 9 files
> > 
> > 
> > If any of these errors are false positives, please file a bug against
> > check-webkit-style.
> 
> I wonder if it would be worth disabling this check for *SPI.h headers? 

We could disable such warnings for files whose name ends the suffix SPI.h and/or are in- or in a sub directory of- directory Source/WebCore/platform/spi. Such a change would be beneficial if we anticipate adding such enums regularly.
Comment 7 Daniel Bates 2014-11-17 13:52:53 PST
Comment on attachment 241733 [details]
Patch

Clearing flags on attachment: 241733

Committed r176229: <http://trac.webkit.org/changeset/176229>
Comment 8 Daniel Bates 2014-11-17 13:52:59 PST
All reviewed patches have been landed.  Closing bug.