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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp

Issue 2800173002: Remove ScriptState::setExecutionContext (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "bindings/core/v8/ScriptState.h" 5 #include "bindings/core/v8/ScriptState.h"
6 6
7 #include "bindings/core/v8/V8Binding.h" 7 #include "bindings/core/v8/V8Binding.h"
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 .ToLocal(&v8Value)) 63 .ToLocal(&v8Value))
64 return ScriptValue(); 64 return ScriptValue();
65 return ScriptValue(this, v8Value); 65 return ScriptValue(this, v8Value);
66 } 66 }
67 67
68 ExecutionContext* ScriptState::getExecutionContext() const { 68 ExecutionContext* ScriptState::getExecutionContext() const {
69 v8::HandleScope scope(m_isolate); 69 v8::HandleScope scope(m_isolate);
70 return toExecutionContext(context()); 70 return toExecutionContext(context());
71 } 71 }
72 72
73 void ScriptState::setExecutionContext(ExecutionContext*) {
74 ASSERT_NOT_REACHED();
75 }
76
77 } // namespace blink 73 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698