mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
7f3ccb5dc3
12 changed files with 310 additions and 188 deletions
|
|
@ -373,7 +373,9 @@ void PannerNode::DestroyMediaStream()
|
|||
float
|
||||
PannerNodeEngine::LinearGainFunction(double aDistance)
|
||||
{
|
||||
return 1 - mRolloffFactor * (std::max(std::min(aDistance, mMaxDistance), mRefDistance) - mRefDistance) / (mMaxDistance - mRefDistance);
|
||||
double clampedRollof = std::clamp(mRolloffFactor, 0.0, 1.0);
|
||||
return AssertedCast<float>(
|
||||
1.0 - clampedRollof * (std::max(std::min(aDistance, mMaxDistance), mRefDistance) - mRefDistance) / (mMaxDistance - mRefDistance));
|
||||
}
|
||||
|
||||
float
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ public:
|
|||
{
|
||||
mPt.mX = aPt.x;
|
||||
mPt.mY = aPt.y;
|
||||
NS_ASSERTION(IsFinite(mPt.mX) && IsFinite(mPt.mX),
|
||||
NS_ASSERTION(IsFinite(mPt.mX) && IsFinite(mPt.mY),
|
||||
"DOMSVGPoint coords are not finite");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1246,9 +1246,8 @@ private:
|
|||
|
||||
// We did inherit CSP in bug 1223647. If we do not already have a CSP, we
|
||||
// should get it from the HTTP headers on the worker script.
|
||||
if (mWorkerPrivate->CSPEnabled() &&
|
||||
!mWorkerPrivate->GetCSP() &&
|
||||
CSPService::sCSPEnabled) {
|
||||
if (CSPService::sCSPEnabled &&
|
||||
!mWorkerPrivate->GetCSP()) {
|
||||
rv = mWorkerPrivate->SetCSPFromHeaderValues(tCspHeaderValue,
|
||||
tCspROHeaderValue);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue