Changeset 204284 in webkit
- Timestamp:
- Aug 9, 2016 10:01:39 AM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r204281 r204284 1 2016-08-09 Dan Bernstein <mitz@apple.com> 2 3 Add WKPage SPI for looking up a WKFrame given a WKFrameHandle 4 https://bugs.webkit.org/show_bug.cgi?id=160695 5 6 Reviewed by Anders Carlsson. 7 8 * UIProcess/API/C/WKPage.cpp: 9 (WKPageLookUpFrameFromHandle): Added. Gets the frame from the map in the page’s process and 10 returns it if it belongs to the page. 11 * UIProcess/API/C/WKPagePrivate.h: 12 1 13 2016-08-08 Anders Carlsson <andersca@apple.com> 2 14 -
trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp
r203674 r204284 34 34 #include "APIFindClient.h" 35 35 #include "APIFindMatchesClient.h" 36 #include "APIFrameHandle.h" 36 37 #include "APIFrameInfo.h" 37 38 #include "APIGeometry.h" … … 2640 2641 } 2641 2642 2643 WKFrameRef WKPageLookUpFrameFromHandle(WKPageRef pageRef, WKFrameHandleRef handleRef) 2644 { 2645 auto page = toImpl(pageRef); 2646 auto frame = page->process().webFrame(toImpl(handleRef)->frameID()); 2647 if (!frame || frame->page() != page) 2648 return nullptr; 2649 2650 return toAPI(frame); 2651 } 2652 2642 2653 void WKPageSetMayStartMediaWhenInWindow(WKPageRef pageRef, bool mayStartMedia) 2643 2654 { -
trunk/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h
r203674 r204284 102 102 WK_EXPORT WKArrayRef WKPageCopyRelatedPages(WKPageRef page); 103 103 104 WK_EXPORT WKFrameRef WKPageLookUpFrameFromHandle(WKPageRef page, WKFrameHandleRef handle); 105 104 106 enum { 105 107 kWKScrollPinningBehaviorDoNotPin,
Note: See TracChangeset
for help on using the changeset viewer.