зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1443080 - Now that we use static call, some var instances are not needed anymore r=Ehsan
MozReview-Commit-ID: AiuJIY8Gssl --HG-- extra : rebase_source : 3675da434f08bf7cf16ac8e4850e1a47ab59e991
This commit is contained in:
Родитель
c07eb73986
Коммит
671b9fdbf8
|
@ -102,9 +102,6 @@ int HRTFPanner::calculateDesiredAzimuthIndexAndBlend(double azimuth, double& azi
|
|||
if (azimuth < 0)
|
||||
azimuth += 360.0;
|
||||
|
||||
HRTFDatabase* database = m_databaseLoader->database();
|
||||
MOZ_ASSERT(database);
|
||||
|
||||
int numberOfAzimuths = HRTFDatabase::numberOfAzimuths();
|
||||
const double angleBetweenAzimuths = 360.0 / numberOfAzimuths;
|
||||
|
||||
|
|
|
@ -74,16 +74,13 @@ private:
|
|||
: nsExpirationTracker<nsCSSRuleProcessor,3>(
|
||||
10000, "RuleProcessorCache::ExpirationTracker",
|
||||
SystemGroup::EventTargetFor(TaskCategory::Other))
|
||||
, mCache(aCache) {}
|
||||
{}
|
||||
|
||||
void RemoveObjectIfTracked(nsCSSRuleProcessor* aRuleProcessor);
|
||||
|
||||
virtual void NotifyExpired(nsCSSRuleProcessor* aRuleProcessor) override {
|
||||
mozilla::RuleProcessorCache::RemoveRuleProcessor(aRuleProcessor);
|
||||
}
|
||||
|
||||
private:
|
||||
RuleProcessorCache* mCache;
|
||||
};
|
||||
|
||||
RuleProcessorCache() : mExpirationTracker(this) {}
|
||||
|
|
|
@ -214,7 +214,6 @@ nsSVGIntegrationUtils::GetSVGCoordContextForNonSVGFrame(nsIFrame* aNonSVGFrame)
|
|||
nsIFrame* firstFrame =
|
||||
nsLayoutUtils::FirstContinuationOrIBSplitSibling(aNonSVGFrame);
|
||||
nsRect r = nsLayoutUtils::GetAllInFlowRectsUnion(firstFrame, firstFrame);
|
||||
nsPresContext* presContext = firstFrame->PresContext();
|
||||
return gfx::Size(nsPresContext::AppUnitsToFloatCSSPixels(r.width),
|
||||
nsPresContext::AppUnitsToFloatCSSPixels(r.height));
|
||||
}
|
||||
|
|
|
@ -2411,7 +2411,6 @@ nsMenuPopupFrame::MoveTo(const CSSIntPoint& aPos, bool aUpdateAttrs)
|
|||
LookAndFeel::eIntID_ContextMenuOffsetVertical));
|
||||
}
|
||||
|
||||
nsPresContext* presContext = PresContext();
|
||||
mAnchorType = MenuPopupAnchorType_Point;
|
||||
mScreenRect.x = aPos.x - nsPresContext::AppUnitsToIntCSSPixels(margin.left);
|
||||
mScreenRect.y = aPos.y - nsPresContext::AppUnitsToIntCSSPixels(margin.top);
|
||||
|
|
Загрузка…
Ссылка в новой задаче