Changeset 243762 in webkit
- Timestamp:
- Apr 2, 2019, 2:43:24 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 22 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/security-window/window-security.https-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/security-window/window-security.sub-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-properties.https-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt (modified) (7 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-exposed-window-event-handlers-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/wk2/TestExpectations (modified) (1 diff)
-
LayoutTests/printing/printing-events-expected.txt (added)
-
LayoutTests/printing/printing-events.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/EventNames.h (modified) (2 diffs)
-
Source/WebCore/html/HTMLAttributeNames.in (modified) (2 diffs)
-
Source/WebCore/html/HTMLBodyElement.cpp (modified) (1 diff)
-
Source/WebCore/page/Page.cpp (modified) (1 diff)
-
Source/WebCore/page/Page.h (modified) (1 diff)
-
Source/WebCore/page/WindowEventHandlers.idl (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/UIProcess/API/C/WKPage.cpp (modified) (3 diffs)
-
Source/WebKit/WebProcess/WebPage/WebPage.cpp (modified) (2 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/TestController.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r243760 r243762 1 2019-04-02 Chris Dumez <cdumez@apple.com> 2 3 [WK2] Add support for Window's beforeprint / afterprint events 4 https://bugs.webkit.org/show_bug.cgi?id=196478 5 6 Reviewed by Alex Christensen. 7 8 Add layout test coverage. 9 10 * TestExpectations: 11 * platform/wk2/TestExpectations: 12 * printing/printing-events-expected.txt: Added. 13 * printing/printing-events.html: Added. 14 1 15 2019-04-02 Zalan Bujtas <zalan@apple.com> 2 16 -
trunk/LayoutTests/TestExpectations
r243693 r243762 58 58 editing/pasteboard/ios [ Skip ] 59 59 editing/pasteboard/mac [ Skip ] 60 61 # WebKit2 only. 62 printing/printing-events.html [ Skip ] 60 63 61 64 http/tests/security/xss-DENIED-xsl-external-entity-no-logging.xml [ Skip ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r243757 r243762 1 2019-04-02 Chris Dumez <cdumez@apple.com> 2 3 [WK2] Add support for Window's beforeprint / afterprint events 4 https://bugs.webkit.org/show_bug.cgi?id=196478 5 6 Reviewed by Alex Christensen. 7 8 Rebaseline WPT tests now that more checks are passing. 9 10 * web-platform-tests/html/browsers/the-window-object/security-window/window-security.https-expected.txt: 11 * web-platform-tests/html/browsers/the-window-object/security-window/window-security.sub-expected.txt: 12 * web-platform-tests/html/browsers/the-window-object/window-properties.https-expected.txt: 13 * web-platform-tests/html/dom/interfaces-expected.txt: 14 * web-platform-tests/html/webappapis/scripting/events/body-exposed-window-event-handlers-expected.txt: 15 * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt: 16 1 17 2019-04-02 Chris Dumez <cdumez@apple.com> 2 18 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/security-window/window-security.https-expected.txt
r243634 r243762 15 15 PASS A SecurityError exception must be thrown when window.navigator is accessed from a different origin. 16 16 PASS A SecurityError exception must be thrown when window.onabort is accessed from a different origin. 17 FAIL A SecurityError exception must be thrown when window.onafterprint is accessed from a different origin. assert_true: window.onafterprint should exist. expected true got false 18 FAIL A SecurityError exception must be thrown when window.onbeforeprint is accessed from a different origin. assert_true: window.onbeforeprint should exist. expected true got false 17 PASS A SecurityError exception must be thrown when window.onafterprint is accessed from a different origin. 18 PASS A SecurityError exception must be thrown when window.onbeforeprint is accessed from a different origin. 19 19 PASS A SecurityError exception must be thrown when window.onbeforeunload is accessed from a different origin. 20 20 PASS A SecurityError exception must be thrown when window.onblur is accessed from a different origin. -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/security-window/window-security.sub-expected.txt
r205169 r243762 15 15 PASS A SecurityError exception must be thrown when window.navigator is accessed from a different origin. 16 16 PASS A SecurityError exception must be thrown when window.onabort is accessed from a different origin. 17 FAIL A SecurityError exception must be thrown when window.onafterprint is accessed from a different origin. assert_true: window.onafterprint should exist. expected true got false 18 FAIL A SecurityError exception must be thrown when window.onbeforeprint is accessed from a different origin. assert_true: window.onbeforeprint should exist. expected true got false 17 PASS A SecurityError exception must be thrown when window.onafterprint is accessed from a different origin. 18 PASS A SecurityError exception must be thrown when window.onbeforeprint is accessed from a different origin. 19 19 PASS A SecurityError exception must be thrown when window.onbeforeunload is accessed from a different origin. 20 20 PASS A SecurityError exception must be thrown when window.onblur is accessed from a different origin. -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-properties.https-expected.txt
r243634 r243762 77 77 PASS Window attribute: opener 78 78 PASS Window attribute: onabort 79 FAIL Window attribute: onafterprint assert_true: onafterprint in window expected true got false 80 FAIL Window attribute: onbeforeprint assert_true: onbeforeprint in window expected true got false 79 PASS Window attribute: onafterprint 80 PASS Window attribute: onbeforeprint 81 81 PASS Window attribute: onbeforeunload 82 82 PASS Window attribute: onblur -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
r243638 r243762 6 6 CONSOLE MESSAGE: line 482: callback not yet supported 7 7 CONSOLE MESSAGE: line 482: callback not yet supported 8 CONSOLE MESSAGE: WebSocket network error: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)9 CONSOLE MESSAGE: WebSocket network error: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)10 8 HTML IDL tests 11 9 … … 897 895 PASS HTMLBodyElement interface: attribute bgColor 898 896 PASS HTMLBodyElement interface: attribute background 899 FAIL HTMLBodyElement interface: attribute onafterprint assert_true: The prototype object must have a property "onafterprint" expected true got false 900 FAIL HTMLBodyElement interface: attribute onbeforeprint assert_true: The prototype object must have a property "onbeforeprint" expected true got false 897 PASS HTMLBodyElement interface: attribute onafterprint 898 PASS HTMLBodyElement interface: attribute onbeforeprint 901 899 PASS HTMLBodyElement interface: attribute onbeforeunload 902 900 PASS HTMLBodyElement interface: attribute onhashchange … … 921 919 PASS HTMLBodyElement interface: document.createElement("body") must inherit property "bgColor" with the proper type 922 920 PASS HTMLBodyElement interface: document.createElement("body") must inherit property "background" with the proper type 923 FAIL HTMLBodyElement interface: document.createElement("body") must inherit property "onafterprint" with the proper type assert_inherits: property "onafterprint" not found in prototype chain 924 FAIL HTMLBodyElement interface: document.createElement("body") must inherit property "onbeforeprint" with the proper type assert_inherits: property "onbeforeprint" not found in prototype chain 921 PASS HTMLBodyElement interface: document.createElement("body") must inherit property "onafterprint" with the proper type 922 PASS HTMLBodyElement interface: document.createElement("body") must inherit property "onbeforeprint" with the proper type 925 923 PASS HTMLBodyElement interface: document.createElement("body") must inherit property "onbeforeunload" with the proper type 926 924 PASS HTMLBodyElement interface: document.createElement("body") must inherit property "onhashchange" with the proper type … … 4685 4683 PASS Window interface: attribute onvolumechange 4686 4684 PASS Window interface: attribute onwaiting 4687 FAIL Window interface: attribute onafterprint assert_own_property: The global object must have a property "onafterprint" expected property "onafterprint" missing 4688 FAIL Window interface: attribute onbeforeprint assert_own_property: The global object must have a property "onbeforeprint" expected property "onbeforeprint" missing 4685 PASS Window interface: attribute onafterprint 4686 PASS Window interface: attribute onbeforeprint 4689 4687 PASS Window interface: attribute onbeforeunload 4690 4688 PASS Window interface: attribute onhashchange … … 4828 4826 PASS Window interface: window must inherit property "onvolumechange" with the proper type 4829 4827 PASS Window interface: window must inherit property "onwaiting" with the proper type 4830 FAIL Window interface: window must inherit property "onafterprint" with the proper type assert_own_property: expected property "onafterprint" missing 4831 FAIL Window interface: window must inherit property "onbeforeprint" with the proper type assert_own_property: expected property "onbeforeprint" missing 4828 PASS Window interface: window must inherit property "onafterprint" with the proper type 4829 PASS Window interface: window must inherit property "onbeforeprint" with the proper type 4832 4830 PASS Window interface: window must inherit property "onbeforeunload" with the proper type 4833 4831 PASS Window interface: window must inherit property "onhashchange" with the proper type … … 5360 5358 PASS HTMLFrameSetElement interface: attribute cols 5361 5359 PASS HTMLFrameSetElement interface: attribute rows 5362 FAIL HTMLFrameSetElement interface: attribute onafterprint assert_true: The prototype object must have a property "onafterprint" expected true got false 5363 FAIL HTMLFrameSetElement interface: attribute onbeforeprint assert_true: The prototype object must have a property "onbeforeprint" expected true got false 5360 PASS HTMLFrameSetElement interface: attribute onafterprint 5361 PASS HTMLFrameSetElement interface: attribute onbeforeprint 5364 5362 PASS HTMLFrameSetElement interface: attribute onbeforeunload 5365 5363 PASS HTMLFrameSetElement interface: attribute onhashchange … … 5380 5378 PASS HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "cols" with the proper type 5381 5379 PASS HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "rows" with the proper type 5382 FAIL HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onafterprint" with the proper type assert_inherits: property "onafterprint" not found in prototype chain 5383 FAIL HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onbeforeprint" with the proper type assert_inherits: property "onbeforeprint" not found in prototype chain 5380 PASS HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onafterprint" with the proper type 5381 PASS HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onbeforeprint" with the proper type 5384 5382 PASS HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onbeforeunload" with the proper type 5385 5383 PASS HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onhashchange" with the proper type -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-exposed-window-event-handlers-expected.txt
r215916 r243762 10 10 PASS Return null when getting the scroll event handler of a windowless body 11 11 PASS Ignore setting of scroll window event handlers on windowless body 12 FAIL Return null when getting the afterprint event handler of a windowless body assert_equals: expected (object) null but got (undefined) undefined 13 FAIL Ignore setting of afterprint window event handlers on windowless body assert_equals: expected (object) null but got (function) function "function () { return "Handler attached to windowless element"; }" 14 FAIL Return null when getting the beforeprint event handler of a windowless body assert_equals: expected (object) null but got (undefined) undefined 15 FAIL Ignore setting of beforeprint window event handlers on windowless body assert_equals: expected (object) null but got (function) function "function () { return "Handler attached to windowless element"; }" 12 PASS Return null when getting the afterprint event handler of a windowless body 13 PASS Ignore setting of afterprint window event handlers on windowless body 14 PASS Return null when getting the beforeprint event handler of a windowless body 15 PASS Ignore setting of beforeprint window event handlers on windowless body 16 16 PASS Return null when getting the beforeunload event handler of a windowless body 17 17 PASS Ignore setting of beforeunload window event handlers on windowless body … … 50 50 PASS Return null when getting the scroll event handler of a windowless frameset 51 51 PASS Ignore setting of scroll window event handlers on windowless frameset 52 FAIL Return null when getting the afterprint event handler of a windowless frameset assert_equals: expected (object) null but got (undefined) undefined 53 FAIL Ignore setting of afterprint window event handlers on windowless frameset assert_equals: expected (object) null but got (function) function "function () { return "Handler attached to windowless element"; }" 54 FAIL Return null when getting the beforeprint event handler of a windowless frameset assert_equals: expected (object) null but got (undefined) undefined 55 FAIL Ignore setting of beforeprint window event handlers on windowless frameset assert_equals: expected (object) null but got (function) function "function () { return "Handler attached to windowless element"; }" 52 PASS Return null when getting the afterprint event handler of a windowless frameset 53 PASS Ignore setting of afterprint window event handlers on windowless frameset 54 PASS Return null when getting the beforeprint event handler of a windowless frameset 55 PASS Ignore setting of beforeprint window event handlers on windowless frameset 56 56 PASS Return null when getting the beforeunload event handler of a windowless frameset 57 57 PASS Ignore setting of beforeunload window event handlers on windowless frameset -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt
r207040 r243762 6 6 PASS resize 7 7 PASS scroll 8 FAIL afterprint assert_equals: expected (function) function "function f() { 9 return 0; 10 }" but got (undefined) undefined 11 FAIL beforeprint assert_equals: expected (function) function "function f() { 12 return 0; 13 }" but got (undefined) undefined 8 PASS afterprint 9 PASS beforeprint 14 10 PASS beforeunload 15 11 PASS hashchange … … 29 25 PASS resize removal 30 26 PASS scroll removal 31 FAIL afterprint removal assert_equals: expected (object) null but got (undefined) undefined 32 FAIL beforeprint removal assert_equals: expected (object) null but got (undefined) undefined 27 PASS afterprint removal 28 PASS beforeprint removal 33 29 PASS beforeunload removal 34 30 PASS hashchange removal -
trunk/LayoutTests/platform/wk2/TestExpectations
r242043 r243762 703 703 imported/w3c/web-platform-tests/fetch/api/request/request-cache-only-if-cached.html [ Failure ] 704 704 705 printing/printing-events.html [ Pass ] 706 705 707 # Resource Load Statistics are only supported in WebKit2. 706 708 http/tests/resourceLoadStatistics/prevalent-resource-with-user-interaction.html [ Pass ] -
trunk/Source/WebCore/ChangeLog
r243760 r243762 1 2019-04-02 Chris Dumez <cdumez@apple.com> 2 3 [WK2] Add support for Window's beforeprint / afterprint events 4 https://bugs.webkit.org/show_bug.cgi?id=196478 5 6 Reviewed by Alex Christensen. 7 8 Add support for Window's beforeprint / afterprint events as per: 9 - https://html.spec.whatwg.org/#dom-print 10 11 Blink and Gecko already support this. 12 13 Test: printing/printing-events.html 14 15 * dom/EventNames.h: 16 * html/HTMLAttributeNames.in: 17 * html/HTMLBodyElement.cpp: 18 (WebCore::HTMLBodyElement::createWindowEventHandlerNameMap): 19 * page/Page.cpp: 20 (WebCore::dispatchPrintEvent): 21 (WebCore::Page::dispatchBeforePrintEvent): 22 (WebCore::Page::dispatchAfterPrintEvent): 23 * page/Page.h: 24 * page/WindowEventHandlers.idl: 25 1 26 2019-04-02 Zalan Bujtas <zalan@apple.com> 2 27 -
trunk/Source/WebCore/dom/EventNames.h
r243106 r243762 64 64 macro(addstream) \ 65 65 macro(addtrack) \ 66 macro(afterprint) \ 66 67 macro(animationcancel) \ 67 68 macro(animationend) \ … … 78 79 macro(beforeload) \ 79 80 macro(beforepaste) \ 81 macro(beforeprint) \ 80 82 macro(beforeunload) \ 81 83 macro(beginEvent) \ -
trunk/Source/WebCore/html/HTMLAttributeNames.in
r242534 r243762 203 203 onaccessiblesetvalue 204 204 onaccessibleselect 205 onafterprint 205 206 onanimationstart 206 207 onanimationiteration … … 214 215 onbeforeload 215 216 onbeforepaste 217 onbeforeprint 216 218 onbeforeunload 217 219 onblur -
trunk/Source/WebCore/html/HTMLBodyElement.cpp
r238698 r243762 99 99 { 100 100 static const QualifiedName* const table[] = { 101 &onafterprintAttr.get(), 102 &onbeforeprintAttr.get(), 101 103 &onbeforeunloadAttr.get(), 102 104 &onblurAttr.get(), -
trunk/Source/WebCore/page/Page.cpp
r243643 r243762 2989 2989 #endif // PLATFORM(MAC) 2990 2990 2991 static void dispatchPrintEvent(Frame& mainFrame, const AtomicString& eventType) 2992 { 2993 Vector<Ref<Frame>> frames; 2994 for (auto* frame = &mainFrame; frame; frame = frame->tree().traverseNext()) 2995 frames.append(*frame); 2996 2997 for (auto& frame : frames) { 2998 if (auto* window = frame->window()) 2999 window->dispatchEvent(Event::create(eventType, Event::CanBubble::No, Event::IsCancelable::No), window->document()); 3000 } 3001 } 3002 3003 void Page::dispatchBeforePrintEvent() 3004 { 3005 dispatchPrintEvent(m_mainFrame, eventNames().beforeprintEvent); 3006 } 3007 3008 void Page::dispatchAfterPrintEvent() 3009 { 3010 dispatchPrintEvent(m_mainFrame, eventNames().afterprintEvent); 3011 } 3012 2991 3013 #if ENABLE(APPLE_PAY) 2992 3014 void Page::setPaymentCoordinator(std::unique_ptr<PaymentCoordinator>&& paymentCoordinator) -
trunk/Source/WebCore/page/Page.h
r243643 r243762 297 297 WEBCORE_EXPORT void unmarkAllTextMatches(); 298 298 299 WEBCORE_EXPORT void dispatchBeforePrintEvent(); 300 WEBCORE_EXPORT void dispatchAfterPrintEvent(); 301 299 302 // find all the Ranges for the matching text. 300 303 // Upon return, indexForSelection will be one of the following: -
trunk/Source/WebCore/page/WindowEventHandlers.idl
r207040 r243762 32 32 // are not yet implemented. 33 33 34 // [WindowEventHandler] attribute EventHandler onafterprint;.35 // [WindowEventHandler] attribute EventHandler onbeforeprint;.34 [WindowEventHandler] attribute EventHandler onafterprint; 35 [WindowEventHandler] attribute EventHandler onbeforeprint; 36 36 [WindowEventHandler] attribute EventHandler onbeforeunload; 37 37 [WindowEventHandler] attribute EventHandler onhashchange; -
trunk/Source/WebKit/ChangeLog
r243753 r243762 1 2019-04-02 Chris Dumez <cdumez@apple.com> 2 3 [WK2] Add support for Window's beforeprint / afterprint events 4 https://bugs.webkit.org/show_bug.cgi?id=196478 5 6 Reviewed by Alex Christensen. 7 8 Add support for Window's beforeprint / afterprint events as per: 9 - https://html.spec.whatwg.org/#dom-print 10 11 Blink and Gecko already support this. 12 13 * WebProcess/WebPage/WebPage.cpp: 14 (WebKit::WebPage::beginPrinting): 15 (WebKit::WebPage::endPrinting): 16 1 17 2019-04-02 Wenson Hsieh <wenson_hsieh@apple.com> 2 18 -
trunk/Source/WebKit/UIProcess/API/C/WKPage.cpp
r243319 r243762 2407 2407 } 2408 2408 2409 #if PLATFORM(COCOA)2410 2409 static PrintInfo printInfoFromWKPrintInfo(const WKPrintInfo& printInfo) 2411 2410 { … … 2427 2426 } 2428 2427 2428 #if PLATFORM(COCOA) 2429 void WKPageDrawPagesToPDF(WKPageRef page, WKFrameRef frame, WKPrintInfo printInfo, uint32_t first, uint32_t count, WKPageDrawToPDFFunction callback, void* context) 2430 { 2431 toImpl(page)->drawPagesToPDF(toImpl(frame), printInfoFromWKPrintInfo(printInfo), first, count, DataCallback::create(toGenericCallbackFunction(context, callback))); 2432 } 2433 #endif 2434 2429 2435 void WKPageBeginPrinting(WKPageRef page, WKFrameRef frame, WKPrintInfo printInfo) 2430 2436 { … … 2432 2438 } 2433 2439 2434 void WKPageDrawPagesToPDF(WKPageRef page, WKFrameRef frame, WKPrintInfo printInfo, uint32_t first, uint32_t count, WKPageDrawToPDFFunction callback, void* context)2435 {2436 toImpl(page)->drawPagesToPDF(toImpl(frame), printInfoFromWKPrintInfo(printInfo), first, count, DataCallback::create(toGenericCallbackFunction(context, callback)));2437 }2438 2439 2440 void WKPageEndPrinting(WKPageRef page) 2440 2441 { 2441 2442 toImpl(page)->endPrinting(); 2442 2443 } 2443 #endif2444 2444 2445 2445 bool WKPageGetIsControlledByAutomation(WKPageRef page) -
trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp
r243684 r243762 4608 4608 #endif 4609 4609 4610 if (!m_printContext) 4610 if (!m_printContext) { 4611 4611 m_printContext = std::make_unique<PrintContext>(coreFrame); 4612 m_page->dispatchBeforePrintEvent(); 4613 } 4612 4614 4613 4615 freezeLayerTree(LayerTreeFreezeReason::Printing); … … 4628 4630 unfreezeLayerTree(LayerTreeFreezeReason::Printing); 4629 4631 4630 m_printContext = nullptr; 4632 if (m_printContext) { 4633 m_printContext = nullptr; 4634 m_page->dispatchAfterPrintEvent(); 4635 } 4631 4636 } 4632 4637 -
trunk/Tools/ChangeLog
r243761 r243762 1 2019-04-02 Chris Dumez <cdumez@apple.com> 2 3 [WK2] Add support for Window's beforeprint / afterprint events 4 https://bugs.webkit.org/show_bug.cgi?id=196478 5 6 Reviewed by Alex Christensen. 7 8 Add minimal implementation for printFrame in WebKitTestRunner. 9 10 * WebKitTestRunner/TestController.cpp: 11 (WTR::printFrame): 12 (WTR::TestController::createOtherPage): 13 (WTR::TestController::createWebViewWithOptions): 14 1 15 2019-04-02 Aakash Jain <aakash_jain@apple.com> 2 16 -
trunk/Tools/WebKitTestRunner/TestController.cpp
r243657 r243762 263 263 } 264 264 265 static void printFrame(WKPageRef page, WKFrameRef frame, const void*) 266 { 267 WKPageBeginPrinting(page, frame, WKPrintInfo { 1.0, 21.0, 29.7 }); 268 WKPageEndPrinting(page); 269 } 270 265 271 static bool shouldAllowDeviceOrientationAndMotionAccess(WKPageRef, WKSecurityOriginRef origin, const void*) 266 272 { … … 321 327 0, // drawHeader 322 328 0, // drawFooter 323 0, // printFrame329 printFrame, 324 330 runModal, 325 331 0, // didCompleteRubberBandForMainFrame … … 614 620 0, // drawHeader 615 621 0, // drawFooter 616 0, // printFrame622 printFrame, 617 623 runModal, 618 624 0, // didCompleteRubberBandForMainFrame
Note:
See TracChangeset
for help on using the changeset viewer.