Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / web / WebScriptSource.cpp
blob0a51244114a97dd2c6c7300d057f220181ab2950
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "config.h"
6 #include "public/web/WebScriptSource.h"
8 #include "bindings/core/v8/ScriptSourceCode.h"
9 #include "wtf/text/TextPosition.h"
11 namespace blink {
13 WebScriptSource::operator ScriptSourceCode() const
15 TextPosition position(OrdinalNumber::fromOneBasedInt(startLine), OrdinalNumber::first());
16 return ScriptSourceCode(code, url, position);
19 } // namespace blink