Changeset 211321 in webkit
- Timestamp:
- Jan 27, 2017 8:50:48 PM (7 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r211312 r211321 1 2017-01-27 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] No way to get the text from a WKWebProcessPlugInRangeHandle 4 https://bugs.webkit.org/show_bug.cgi?id=167535 5 6 Reviewed by Sam Weinig. 7 8 Added a text property to WKWebProcessPlugInRangeHandle. 9 10 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInRangeHandle.h: Declare new property. 11 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInRangeHandle.mm: 12 (-[WKWebProcessPlugInRangeHandle text]): Added. Calls InjectedBundleRangeHandle::text. 13 14 * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp: 15 (WebKit::InjectedBundleRangeHandle::text): Added. Calls WebCore::Range::text. 16 * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h: 17 1 18 2017-01-27 Alex Christensen <achristensen@webkit.org> 2 19 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInRangeHandle.h
r209307 r211321 39 39 40 40 @property (nonatomic, readonly) WKWebProcessPlugInFrame *frame; 41 @property (nonatomic, readonly, copy) NSString *text WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); 41 42 42 43 @end -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInRangeHandle.mm
r209307 r211321 60 60 } 61 61 62 - (NSString *)text 63 { 64 return _rangeHandle->text(); 65 } 66 62 67 - (InjectedBundleRangeHandle&)_rangeHandle 63 68 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp
r211247 r211321 161 161 } 162 162 163 String InjectedBundleRangeHandle::text() const 164 { 165 return m_range->text(); 166 } 167 163 168 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h
r209307 r211321 30 30 #include "ImageOptions.h" 31 31 #include <JavaScriptCore/JSBase.h> 32 #include <wtf/Forward.h> 32 33 #include <wtf/PassRefPtr.h> 33 34 #include <wtf/RefPtr.h> … … 55 56 WebCore::IntRect boundingRectInWindowCoordinates() const; 56 57 PassRefPtr<WebImage> renderedImage(SnapshotOptions); 58 String text() const; 57 59 58 60 WebCore::Range* coreRange() const;
Note: See TracChangeset
for help on using the changeset viewer.