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

Unified Diff: Source/bindings/v8/custom/V8PannerNodeCustom.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
« no previous file with comments | « Source/bindings/v8/custom/V8OscillatorNodeCustom.cpp ('k') | Source/bindings/v8/custom/V8WindowCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/custom/V8PannerNodeCustom.cpp
diff --git a/Source/bindings/v8/custom/V8PannerNodeCustom.cpp b/Source/bindings/v8/custom/V8PannerNodeCustom.cpp
index 8b0d7c9490bd740a380103f15028a8e276b956e9..12d67466d257a7837a27bb92265f67a42071a44c 100644
--- a/Source/bindings/v8/custom/V8PannerNodeCustom.cpp
+++ b/Source/bindings/v8/custom/V8PannerNodeCustom.cpp
@@ -45,7 +45,7 @@ void V8PannerNode::panningModelAttributeSetterCustom(v8::Local<v8::Value> value,
}
if (value->IsString()) {
- String model = toWebCoreString(value);
+ String model = toWebCoreString(value.As<v8::String>());
if (model == "equalpower" || model == "HRTF" || model == "soundfield") {
imp->setPanningModel(model);
return;
@@ -69,7 +69,7 @@ void V8PannerNode::distanceModelAttributeSetterCustom(v8::Local<v8::Value> value
}
if (value->IsString()) {
- String model = toWebCoreString(value);
+ String model = toWebCoreString(value.As<v8::String>());
if (model == "linear" || model == "inverse" || model == "exponential") {
imp->setDistanceModel(model);
return;
« no previous file with comments | « Source/bindings/v8/custom/V8OscillatorNodeCustom.cpp ('k') | Source/bindings/v8/custom/V8WindowCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698