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

Unified Diff: Source/bindings/v8/custom/V8OscillatorNodeCustom.cpp

Issue 106983007: Get rid of last uses of deprecated toWebCoreString(v8::Handle<v8::Value>) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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/bindings/v8/custom/V8OscillatorNodeCustom.cpp
diff --git a/Source/bindings/v8/custom/V8OscillatorNodeCustom.cpp b/Source/bindings/v8/custom/V8OscillatorNodeCustom.cpp
index e7c49da7c7209e0f4dcabb20b161e6bf91e925f9..80bf07a18cdf9d11a34f769fbb236f728f377c4c 100644
--- a/Source/bindings/v8/custom/V8OscillatorNodeCustom.cpp
+++ b/Source/bindings/v8/custom/V8OscillatorNodeCustom.cpp
@@ -45,7 +45,7 @@ void V8OscillatorNode::typeAttributeSetterCustom(v8::Local<v8::Value> value, con
}
if (value->IsString()) {
- String type = toWebCoreString(value);
+ String type = toWebCoreString(value.As<v8::String>());
if (type == "sine" || type == "square" || type == "sawtooth" || type == "triangle") {
imp->setType(type);
return;
« no previous file with comments | « Source/bindings/v8/custom/V8BiquadFilterNodeCustom.cpp ('k') | Source/bindings/v8/custom/V8PannerNodeCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698