s/BumpPriority/AdjustPriority/ (bug 278531) r=shaver sr=brendan
git-svn-id: svn://10.0.0.236/trunk@169576 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -231,7 +231,7 @@ static nsresult NewImageChannel(nsIChannel **aResult,
|
||||
if (aLoadFlags & nsIRequest::LOAD_BACKGROUND)
|
||||
++priority; // further reduce priority for background loads
|
||||
|
||||
p->BumpPriority(priority);
|
||||
p->AdjustPriority(priority);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
||||
@@ -335,7 +335,7 @@ PRInt32 imgRequest::Priority() const
|
||||
return priority;
|
||||
}
|
||||
|
||||
void imgRequest::BumpPriority(imgRequestProxy *proxy, PRInt32 delta)
|
||||
void imgRequest::AdjustPriority(imgRequestProxy *proxy, PRInt32 delta)
|
||||
{
|
||||
// only the first proxy is allowed to modify the priority of this image load.
|
||||
//
|
||||
@@ -349,7 +349,7 @@ void imgRequest::BumpPriority(imgRequestProxy *proxy, PRInt32 delta)
|
||||
|
||||
nsCOMPtr<nsISupportsPriority> p = do_QueryInterface(mChannel);
|
||||
if (p)
|
||||
p->BumpPriority(delta);
|
||||
p->AdjustPriority(delta);
|
||||
}
|
||||
|
||||
/** imgILoad methods **/
|
||||
|
||||
@@ -121,9 +121,9 @@ private:
|
||||
// PRIORITY_NORMAL if it doesn't support nsISupportsPriority.
|
||||
PRInt32 Priority() const;
|
||||
|
||||
// Bump the priority of the underlying network request by the given delta
|
||||
// Adjust the priority of the underlying network request by the given delta
|
||||
// on behalf of the given proxy.
|
||||
void BumpPriority(imgRequestProxy *aProxy, PRInt32 aDelta);
|
||||
void AdjustPriority(imgRequestProxy *aProxy, PRInt32 aDelta);
|
||||
|
||||
public:
|
||||
NS_DECL_IMGILOAD
|
||||
|
||||
@@ -366,14 +366,14 @@ NS_IMETHODIMP imgRequestProxy::GetPriority(PRInt32 *priority)
|
||||
NS_IMETHODIMP imgRequestProxy::SetPriority(PRInt32 priority)
|
||||
{
|
||||
NS_ENSURE_STATE(mOwner);
|
||||
mOwner->BumpPriority(this, priority - mOwner->Priority());
|
||||
mOwner->AdjustPriority(this, priority - mOwner->Priority());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP imgRequestProxy::BumpPriority(PRInt32 priority)
|
||||
NS_IMETHODIMP imgRequestProxy::AdjustPriority(PRInt32 priority)
|
||||
{
|
||||
NS_ENSURE_STATE(mOwner);
|
||||
mOwner->BumpPriority(this, priority);
|
||||
mOwner->AdjustPriority(this, priority);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user