Bug 138760

Summary: [iOS] CoreText and CoreUI SPI are not available in public SDK
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebCore Misc.Assignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, commit-queue, ddkilzer, dino, enrica, esprehn+autocc, glenn, kondapallykalyan, mitz, mmaxfield
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: iOS 8.1   
Bug Depends on:    
Bug Blocks: 136487, 138802    
Attachments:
Description Flags
Patch
none
Patch none

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.