diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2016-01-21 16:45:51 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2016-01-21 15:02:46 +0000 |
commit | bbdf00cf0913dcdf900c541a2dbf418b7f23788f (patch) | |
tree | 670d4cf701f5f61f3e00bd85bea1b3409bea66cf /Source/WebKit/qt/Api/qwebelement.cpp | |
parent | 18f9f56c2f8b87dd15127e111ced70c4b8b7d3d4 (diff) | |
download | qtwebkit-bbdf00cf0913dcdf900c541a2dbf418b7f23788f.tar.gz |
Improved documentation of evaluateJavaScript().
Change-Id: I47d8f4c0e392ffb70655db9725b035d22a7cad91
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'Source/WebKit/qt/Api/qwebelement.cpp')
-rw-r--r-- | Source/WebKit/qt/Api/qwebelement.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/WebKit/qt/Api/qwebelement.cpp b/Source/WebKit/qt/Api/qwebelement.cpp index 26aedc1f5..8f54d4abc 100644 --- a/Source/WebKit/qt/Api/qwebelement.cpp +++ b/Source/WebKit/qt/Api/qwebelement.cpp @@ -740,7 +740,14 @@ static bool setupScriptContext(WebCore::Element* element, ScriptState*& state, S } /*! - Executes \a scriptSource with this element as \c this object. + Executes \a scriptSource with this element as \c this object + and returns the result of the last executed statement. + + \note This method may be very inefficient if \a scriptSource returns + a DOM element as a result. See \l{QWebFrame::evaluateJavaScript()} + for more details. + + \sa QWebFrame::evaluateJavaScript() */ QVariant QWebElement::evaluateJavaScript(const QString& scriptSource) { |