Bug 143508 - Add experimental code to use custom font dilation when rendering into non-opaque contexts
Summary: Add experimental code to use custom font dilation when rendering into non-opa...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-07 19:23 PDT by Simon Fraser (smfr)
Modified: 2015-04-07 22:48 PDT (History)
6 users (show)

See Also:


Attachments
Patch (14.99 KB, patch)
2015-04-07 19:30 PDT, Simon Fraser (smfr)
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2015-04-07 19:23:33 PDT
Experimenting with text rendering.
Comment 1 Simon Fraser (smfr) 2015-04-07 19:30:20 PDT
Created attachment 250324 [details]
Patch
Comment 2 WebKit Commit Bot 2015-04-07 19:31:57 PDT
Attachment 250324 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h:83:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
ERROR: Source/WebCore/ChangeLog:8:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:9:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:10:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:11:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:12:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:13:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:14:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:15:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 9 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Sam Weinig 2015-04-07 19:33:34 PDT
Comment on attachment 250324 [details]
Patch

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

> Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm:207
> +static CGSize dilationSizeForTextColor(const Color& color)

Can you add a comment explaining these numbers
Comment 4 Simon Fraser (smfr) 2015-04-07 21:16:17 PDT
https://trac.webkit.org/changeset/182516
Comment 5 Chris Dumez 2015-04-07 22:11:08 PDT
Looks like this broke iOS:
/Volumes/Data/EWS/WebKit/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h:82:5: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
    ^
/Volumes/Data/EWS/WebKit/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h:132:5: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100

I believe __MAC_OS_X_VERSION_MIN_REQUIRED is only defined #if PLATFORM(MAC).
Comment 6 Chris Dumez 2015-04-07 22:45:40 PDT
(In reply to comment #5)
> Looks like this broke iOS:
> /Volumes/Data/EWS/WebKit/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h:82:
> 5: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0
> [-Werror,-Wundef]
> #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
>     ^
> /Volumes/Data/EWS/WebKit/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h:
> 132:5: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to
> 0 [-Werror,-Wundef]
> #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
> 
> I believe __MAC_OS_X_VERSION_MIN_REQUIRED is only defined #if PLATFORM(MAC).

Speculative iOS build fix landed in <http://trac.webkit.org/changeset/182519>.
Comment 7 Simon Fraser (smfr) 2015-04-07 22:48:55 PDT
Thanks Chris.