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

Changeset 243783 in webkit


Ignore:
Timestamp:
Apr 2, 2019, 6:56:58 PM (7 years ago)
Author:
Fujii Hironori
Message:

[WK2] Add support for Window's beforeprint / afterprint events
https://bugs.webkit.org/show_bug.cgi?id=196478
<rdar://problem/49535124>

Unreviewed build fix for MSVC.

WebKitTestRunner\TestController.cpp(267): error C2397: conversion from 'double' to 'float' requires a narrowing conversion

And, there is a style guideline. <https://webkit.org/code-style-guidelines/#floating-point-literals>

  • WebKitTestRunner/TestController.cpp:

(WTR::printFrame): Use int and float literals.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r243766 r243783  
     12019-04-02  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WK2] Add support for Window's beforeprint / afterprint events
     4        https://bugs.webkit.org/show_bug.cgi?id=196478
     5        <rdar://problem/49535124>
     6
     7        Unreviewed build fix for MSVC.
     8
     9        > WebKitTestRunner\TestController.cpp(267): error C2397: conversion from 'double' to 'float' requires a narrowing conversion
     10
     11        And, there is a style guideline. <https://webkit.org/code-style-guidelines/#floating-point-literals>
     12
     13        * WebKitTestRunner/TestController.cpp:
     14        (WTR::printFrame): Use int and float literals.
     15
    1162019-04-02  Aakash Jain  <aakash_jain@apple.com>
    217
  • trunk/Tools/WebKitTestRunner/TestController.cpp

    r243762 r243783  
    265265static void printFrame(WKPageRef page, WKFrameRef frame, const void*)
    266266{
    267     WKPageBeginPrinting(page, frame, WKPrintInfo { 1.0, 21.0, 29.7 });
     267    WKPageBeginPrinting(page, frame, WKPrintInfo { 1, 21, 29.7f });
    268268    WKPageEndPrinting(page);
    269269}
Note: See TracChangeset for help on using the changeset viewer.