Bug 97696 - [Chromium][Win] Remove ensureFontLoaded from PlatformSupport
Summary: [Chromium][Win] Remove ensureFontLoaded from PlatformSupport
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Pilgrim (Google)
URL:
Keywords:
Depends on: 97723
Blocks: 82948
  Show dependency treegraph
 
Reported: 2012-09-26 10:29 PDT by Mark Pilgrim (Google)
Modified: 2012-11-28 14:36 PST (History)
7 users (show)

See Also:


Attachments
Patch (4.52 KB, patch)
2012-09-26 10:29 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff
Patch (16.32 KB, patch)
2012-11-19 10:38 PST, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff
WIP Patch (14.91 KB, patch)
2012-11-28 10:40 PST, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff
Patch (14.92 KB, patch)
2012-11-28 13:41 PST, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Pilgrim (Google) 2012-09-26 10:29:15 PDT
[Chromium][Win] Remove ensureFontLoaded from PlatformSupport
Comment 1 Mark Pilgrim (Google) 2012-09-26 10:29:53 PDT
Created attachment 165828 [details]
Patch
Comment 2 Adam Barth 2012-09-26 10:34:10 PDT
Comment on attachment 165828 [details]
Patch

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

> Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp:44
>  

No need for this blank line.
Comment 3 WebKit Review Bot 2012-09-26 11:13:45 PDT
Comment on attachment 165828 [details]
Patch

Clearing flags on attachment: 165828

Committed r129673: <http://trac.webkit.org/changeset/129673>
Comment 4 WebKit Review Bot 2012-09-26 11:13:48 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 WebKit Review Bot 2012-09-26 13:26:25 PDT
Re-opened since this is blocked by bug 97723
Comment 6 Mark Pilgrim (Google) 2012-11-19 10:38:07 PST
Created attachment 175004 [details]
Patch
Comment 7 James Robinson 2012-11-19 12:50:32 PST
Comment on attachment 175004 [details]
Patch

What was the build breakage last time and how does this avoid it?
Comment 8 Mark Pilgrim (Google) 2012-11-19 12:55:16 PST
The previous patch missed all the calling references in WebCore/platform/chromium/. (Still not sure why that passed EWS, but anyway... this patch includes them.)
Comment 9 Adam Barth 2012-11-19 12:55:34 PST
Comment on attachment 175004 [details]
Patch

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

> Source/WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:-64
> -        if (PlatformSupport::ensureFontLoaded(m_platformData.hfont())) {

I wonder if we should provide this helper function in WebCore somewhere rather than inlining it everywhere.
Comment 10 James Robinson 2012-11-19 12:58:41 PST
(In reply to comment #8)
> The previous patch missed all the calling references in WebCore/platform/chromium/. (Still not sure why that passed EWS, but anyway... this patch includes them.)

We don't have any EWS coverage for the chromium-win build.
Comment 11 Mark Pilgrim (Google) 2012-11-20 12:22:19 PST
Is this ready for an r+ or r-?
Comment 12 Adam Barth 2012-11-20 12:54:54 PST
Comment on attachment 175004 [details]
Patch

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

>> Source/WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:-64
>> -        if (PlatformSupport::ensureFontLoaded(m_platformData.hfont())) {
> 
> I wonder if we should provide this helper function in WebCore somewhere rather than inlining it everywhere.

IMHO, we should add this helper function.  Otherwise, we're making all these call sites much more verbose.
Comment 13 Mark Pilgrim (Google) 2012-11-28 10:40:42 PST
Created attachment 176516 [details]
WIP Patch
Comment 14 Mark Pilgrim (Google) 2012-11-28 13:41:50 PST
Created attachment 176564 [details]
Patch
Comment 15 Mark Pilgrim (Google) 2012-11-28 13:42:20 PST
Comment on attachment 176564 [details]
Patch

Fixed a typo. Ready for review now.
Comment 16 Adam Barth 2012-11-28 14:03:35 PST
Comment on attachment 176564 [details]
Patch

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

> Source/WebCore/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp:178
> -                if (PlatformSupport::ensureFontLoaded(hfont())) {
> +                if (FontPlatformData::ensureFontLoaded(hfont())) {

No need for the FontPlatformData:: prefix here.  We're already inside FontPlatformData.
Comment 17 WebKit Review Bot 2012-11-28 14:36:25 PST
Comment on attachment 176564 [details]
Patch

Clearing flags on attachment: 176564

Committed r136057: <http://trac.webkit.org/changeset/136057>
Comment 18 WebKit Review Bot 2012-11-28 14:36:30 PST
All reviewed patches have been landed.  Closing bug.