Bug 101851 - Including <CoreText/CoreText.h> breaks the chromium/mac build.
Summary: Including <CoreText/CoreText.h> breaks the chromium/mac build.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mike West
URL:
Keywords:
Depends on:
Blocks: 101799
  Show dependency treegraph
 
Reported: 2012-11-10 14:41 PST by WebKit Review Bot
Modified: 2012-11-10 15:36 PST (History)
3 users (show)

See Also:


Attachments
ROLLOUT of r134146 (7.83 KB, patch)
2012-11-10 14:41 PST, WebKit Review Bot
no flags Details | Formatted Diff | Diff
Patch (1.54 KB, patch)
2012-11-10 15:01 PST, Mike West
no flags Details | Formatted Diff | Diff
Patch (2.39 KB, patch)
2012-11-10 15:12 PST, Mike West
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description WebKit Review Bot 2012-11-10 14:41:19 PST
http://trac.webkit.org/changeset/134146 broke the build:
Including <CoreText/CoreText.h> breaks the chromium/mac build. (Requested by mkwst on #webkit).

This is an automatic bug report generated by the sheriff-bot. If this bug
report was created because of a flaky test, please file a bug for the flaky
test (if we don't already have one on file) and dup this bug against that bug
so that we can track how often these flaky tests case pain.

"Only you can prevent forest fires." -- Smokey the Bear
Comment 1 WebKit Review Bot 2012-11-10 14:41:57 PST
Created attachment 173476 [details]
ROLLOUT of r134146

Any committer can land this patch automatically by marking it commit-queue+.  The commit-queue will build and test the patch before landing to ensure that the rollout will be successful.  This process takes approximately 15 minutes.

If you would like to land the rollout faster, you can use the following command:

  webkit-patch land-attachment ATTACHMENT_ID

where ATTACHMENT_ID is the ID of this attachment.
Comment 2 mitz 2012-11-10 14:47:53 PST
Comment on attachment 173476 [details]
ROLLOUT of r134146

Please post a sensible patch, such as one reverting only the #include directive.
Comment 3 Mike West 2012-11-10 14:54:51 PST
Hi! I did look for you on #webkit before requesting the rollout, and chromium/mac hasn't built in the last ~20 hours. I don't think rolling the patch out would have been unreasonable.

(In reply to comment #2)
> (From update of attachment 173476 [details])
> Please post a sensible patch, such as one reverting only the #include directive.

If I knew what I was doing in this area of the code, I would have. :) I got a pointer on the channel in a direction that looks good, though. If it ends up working, I'll post a patch here.
Comment 4 Mike West 2012-11-10 15:01:18 PST
Created attachment 173478 [details]
Patch
Comment 5 Mike West 2012-11-10 15:02:31 PST
(In reply to comment #4)
> Created an attachment (id=173478) [details]
> Patch

This compiles locally, but it's copy/paste cargo-culting. Hopefully it's also correct. :)
Comment 6 mitz 2012-11-10 15:02:45 PST
Comment on attachment 173478 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=173478&action=review

> Source/WebCore/platform/graphics/mac/SimpleFontDataCoreText.cpp:34
> +#if PLATFORM(WX) || PLATFORM(CHROMIUM)
> +#include <ApplicationServices/ApplicationServices.h>
> +#else
>  #include <CoreText/CoreText.h>
> +#endif

This is not necessary. ApplicationServices.h can be used everywhere.
Comment 7 Mike West 2012-11-10 15:06:10 PST
(In reply to comment #6)
> (From update of attachment 173478 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=173478&action=review
> 
> > Source/WebCore/platform/graphics/mac/SimpleFontDataCoreText.cpp:34
> > +#if PLATFORM(WX) || PLATFORM(CHROMIUM)
> > +#include <ApplicationServices/ApplicationServices.h>
> > +#else
> >  #include <CoreText/CoreText.h>
> > +#endif
> 
> This is not necessary. ApplicationServices.h can be used everywhere.

I've copied it out of http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/mac/ComplexTextControllerCoreText.mm. I'll fix that file as well.
Comment 8 Mike West 2012-11-10 15:12:03 PST
Created attachment 173479 [details]
Patch
Comment 9 WebKit Review Bot 2012-11-10 15:36:35 PST
Comment on attachment 173479 [details]
Patch

Clearing flags on attachment: 173479

Committed r134165: <http://trac.webkit.org/changeset/134165>
Comment 10 WebKit Review Bot 2012-11-10 15:36:40 PST
All reviewed patches have been landed.  Closing bug.