Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: Source/WebCore/bindings/v8/ScriptSourceCode.h

Issue 6409009: Merge 76429 - 2011-01-21 Yury Semikhatsky <yurys@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/bindings/v8/ScriptSourceCode.h
===================================================================
--- Source/WebCore/bindings/v8/ScriptSourceCode.h (revision 77121)
+++ Source/WebCore/bindings/v8/ScriptSourceCode.h (working copy)
@@ -63,7 +63,12 @@
const String& source() const { return m_source; }
CachedScript* cachedScript() const { return m_cachedScript.get(); }
- const KURL& url() const { return m_url; }
+ const KURL& url() const
+ {
+ if (m_cachedScript)
+ return m_cachedScript->response().url();
+ return m_url;
+ }
int startLine() const { return m_startPosition.m_line.oneBasedInt(); }
const TextPosition1& startPosition() const { return m_startPosition; }
« no previous file with comments | « Source/WebCore/bindings/js/CachedScriptSourceProvider.h ('k') | Source/WebCore/dom/ScriptExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698