summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r--webkit/glue/webframe_impl.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index e8e009b..a80a36c 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -1552,11 +1552,12 @@ void WebFrameImpl::LoadAlternateHTMLErrorPage(const WebRequest* request,
}
void WebFrameImpl::ExecuteJavaScript(const std::string& js_code,
- const GURL& script_url) {
+ const GURL& script_url,
+ int start_line) {
WebCore::ScriptSourceCode source_code(
webkit_glue::StdStringToString(js_code),
webkit_glue::GURLToKURL(script_url),
- 1); // base line number (for errors)
+ start_line);
frame_->loader()->executeScript(source_code);
}