| Summary: | Don't use (Details) when exposing SPI | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||||
| Component: | WebKit Misc. | Assignee: | Dean Jackson <dino> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | mitz, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Dean Jackson
2015-07-29 16:32:48 PDT
Created attachment 257782 [details]
Patch
Created attachment 257788 [details]
Patch
Comment on attachment 257788 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257788&action=review > Source/WebCore/platform/mac/ScrollViewMac.mm:43 > +@interface NSScrollView (Details) > @property BOOL automaticallyAdjustsContentInsets; > @end Is this declared here for building on Mavericks? If so, can you guard this category with #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101000 so that it’s easy to remove later? Maybe also give the category a name that begins with “Web”. > Source/WebCore/platform/spi/cocoa/NSButtonCellSPI.h:30 > +#if PLATFORM(MAC) && USE(APPLE_INTERNAL_SDK) We don’t need the PLATFORM(MAC) here. The fact that the #import <AppKit/NSButtonCell.h> above works proves that this header is used only on Mac, and the __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 is true only on Mac. Comment on attachment 257788 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257788&action=review >> Source/WebCore/platform/mac/ScrollViewMac.mm:43 >> @end > > Is this declared here for building on Mavericks? If so, can you guard this category with #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101000 so that it’s easy to remove later? Maybe also give the category a name that begins with “Web”. You are right. I originally left it in because we can't redeclare it in an extension, but it is only needed for Mavericks. >> Source/WebCore/platform/spi/cocoa/NSButtonCellSPI.h:30 >> +#if PLATFORM(MAC) && USE(APPLE_INTERNAL_SDK) > > We don’t need the PLATFORM(MAC) here. The fact that the #import <AppKit/NSButtonCell.h> above works proves that this header is used only on Mac, and the __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 is true only on Mac. Fixed. Committed r187609: <http://trac.webkit.org/changeset/187609> |