Summary: | [Qt] Short-circuit QWebPage::selectedText() if frame has no selection | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
Component: | WebKit Qt | Assignee: | QtWebKit Unassigned <webkit-qt-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | Keywords: | Performance, Qt, QtTriaged | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Andreas Kling
2010-10-31 12:49:15 PDT
Created attachment 72471 [details]
Proposed patch
Comment on attachment 72471 [details] Proposed patch Clearing flags on attachment: 72471 Committed r70999: <http://trac.webkit.org/changeset/70999> All reviewed patches have been landed. Closing bug. Comment on attachment 72471 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=72471&action=review > WebKit/qt/Api/qwebpage.cpp:2422 > + if (frame->selection()->selection().selectionType() == VisibleSelection::NoSelection) This is a bad internal API =/ : 5 "selection"s for this single simple statement, being on of them "selection()->selection()" Nice shortcut though! |