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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PannerNode.cpp

Issue 2807313002: Allow Panner.refDistance to be 0 (Closed)
Patch Set: Adjust test to support cases where 0 is allowed (or not) 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
index fb400a2a0b5b1d14a38e99bfa6c12f4997ceb598..10aab165b4ab047cb83bcdcc446c2e98fd4999be 100644
--- a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
@@ -748,7 +748,7 @@ double PannerNode::refDistance() const {
void PannerNode::setRefDistance(double distance,
ExceptionState& exception_state) {
- if (distance <= 0) {
+ if (distance < 0) {
exception_state.ThrowDOMException(
kV8RangeError, ExceptionMessages::IndexExceedsMinimumBound<double>(
"refDistance", distance, 0));

Powered by Google App Engine
This is Rietveld 408576698