⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 185475 in webkit


Ignore:
Timestamp:
Jun 11, 2015, 2:29:56 PM (11 years ago)
Author:
mmaxfield@apple.com
Message:

[OS X] Decoding fonts may return nil when using force click
https://bugs.webkit.org/show_bug.cgi?id=145890

Reviewed by Beth Dakin.

[NSFontDescriptor fontDescriptorWithFontAttributes] might return nil, which
causes the encoding of an NSFont to erroneously return true.

  • Shared/mac/ArgumentCodersMac.mm:

(IPC::decode):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r185474 r185475  
     12015-06-11  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [OS X] Decoding fonts may return nil when using force click
     4        https://bugs.webkit.org/show_bug.cgi?id=145890
     5
     6        Reviewed by Beth Dakin.
     7
     8        [NSFontDescriptor fontDescriptorWithFontAttributes] might return nil, which
     9        causes the encoding of an NSFont to erroneously return true.
     10
     11        * Shared/mac/ArgumentCodersMac.mm:
     12        (IPC::decode):
     13
    1142015-06-11  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit2/Shared/mac/ArgumentCodersMac.mm

    r162505 r185475  
    364364    result = [NSFont fontWithDescriptor:fontDescriptor size:0];
    365365
    366     return true;
     366    return result;
    367367}
    368368#endif
Note: See TracChangeset for help on using the changeset viewer.