Bug 148216

Summary: [Cocoa] Clean up Font class
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, dino, jonlee, rniwa, simon.fraser, thorton
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 148278    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews105 for mac-mavericks-wk2
none
Archive of layout-test-results from ews101 for mac-mavericks
none
Patch
none
Archive of layout-test-results from ews103 for mac-mavericks
none
Patch dino: review+

Description Myles C. Maxfield 2015-08-20 01:04:45 PDT
[Cocoa] Clean up Font class
Comment 1 Myles C. Maxfield 2015-08-20 01:15:32 PDT
Created attachment 259458 [details]
Patch
Comment 2 Build Bot 2015-08-20 01:56:27 PDT
Comment on attachment 259458 [details]
Patch

Attachment 259458 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/78426

Number of test failures exceeded the failure limit.
Comment 3 Build Bot 2015-08-20 01:56:30 PDT
Created attachment 259462 [details]
Archive of layout-test-results from ews105 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 4 Myles C. Maxfield 2015-08-20 02:01:02 PDT
Comment on attachment 259458 [details]
Patch

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

> Source/WebCore/platform/graphics/ios/FontCacheIOS.mm:-111
> -#if __IPHONE_OS_VERSION_MIN_REQUIRED < 90000

There's a big block above that I can delete too.
Comment 5 Build Bot 2015-08-20 02:08:46 PDT
Comment on attachment 259458 [details]
Patch

Attachment 259458 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/78443

Number of test failures exceeded the failure limit.
Comment 6 Build Bot 2015-08-20 02:08:48 PDT
Created attachment 259463 [details]
Archive of layout-test-results from ews101 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 7 Myles C. Maxfield 2015-08-20 19:34:33 PDT
Created attachment 259566 [details]
Patch
Comment 8 Build Bot 2015-08-20 20:16:13 PDT
Comment on attachment 259566 [details]
Patch

Attachment 259566 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/83981

Number of test failures exceeded the failure limit.
Comment 9 Build Bot 2015-08-20 20:16:16 PDT
Created attachment 259575 [details]
Archive of layout-test-results from ews103 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 10 Myles C. Maxfield 2015-08-20 20:19:38 PDT
Created attachment 259576 [details]
Patch
Comment 11 Dean Jackson 2015-08-21 13:38:46 PDT
Comment on attachment 259576 [details]
Patch

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

> Source/WebCore/platform/graphics/Font.cpp:-126
> -        m_spaceGlyph = 0;
> -        m_spaceWidth = 0;
> -        m_zeroGlyph = 0;
> -        m_adjustedSpaceWidth = 0;
>          determinePitch();
> -        m_zeroWidthSpaceGlyph = 0;

I assume it isn't a behaviour change if glyphPageZero isn't null? (you're now initialising all these to 0 elsewhere)
Comment 12 Myles C. Maxfield 2015-08-21 16:32:40 PDT
Comment on attachment 259576 [details]
Patch

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

>> Source/WebCore/platform/graphics/Font.cpp:-126
>> -        m_zeroWidthSpaceGlyph = 0;
> 
> I assume it isn't a behaviour change if glyphPageZero isn't null? (you're now initialising all these to 0 elsewhere)

They get initialized directly below this. Lines 127 to 138.
Comment 13 Myles C. Maxfield 2015-08-21 16:34:19 PDT
Committed r188797: <http://trac.webkit.org/changeset/188797>