Changeset 70999 in webkit
- Timestamp:
- Oct 31, 2010 1:42:25 PM (13 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qwebpage.cpp
r70982 r70999 2419 2419 { 2420 2420 d->createMainFrame(); 2421 return d->page->focusController()->focusedOrMainFrame()->editor()->selectedText(); 2421 WebCore::Frame* frame = d->page->focusController()->focusedOrMainFrame(); 2422 if (frame->selection()->selection().selectionType() == VisibleSelection::NoSelection) 2423 return QString(); 2424 return frame->editor()->selectedText(); 2422 2425 } 2423 2426 -
trunk/WebKit/qt/ChangeLog
r70982 r70999 1 2010-10-31 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Short-circuit QWebPage::selectedText() if frame has no selection 6 https://bugs.webkit.org/show_bug.cgi?id=48736 7 8 Do an early return if the selection is empty. 9 10 No new tests, this is covered by tst_QWebPage::findText(). 11 12 * Api/qwebpage.cpp: 13 (QWebPage::selectedText): 14 1 15 2010-10-30 Andreas Kling <kling@webkit.org> 2 16
Note: See TracChangeset
for help on using the changeset viewer.