зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1578777 - Remove the builder parameter from nsDisplayFilters::CreateWebRenderCommands(). r=jrmuizel
It was unused. Depends on D46057 Differential Revision: https://phabricator.services.mozilla.com/D46058 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
48a06f502f
Коммит
ad9e06d1e5
|
@ -1184,7 +1184,7 @@ static bool IsItemProbablyActive(nsDisplayItem* aItem,
|
|||
}
|
||||
case DisplayItemType::TYPE_FILTER: {
|
||||
nsDisplayFilters* filters = static_cast<nsDisplayFilters*>(aItem);
|
||||
return filters->CanCreateWebRenderCommands(aDisplayListBuilder);
|
||||
return filters->CanCreateWebRenderCommands();
|
||||
}
|
||||
default:
|
||||
// TODO: handle other items?
|
||||
|
|
|
@ -10454,17 +10454,13 @@ void nsDisplayFilters::PaintAsLayer(nsDisplayListBuilder* aBuilder,
|
|||
nsDisplayFiltersGeometry::UpdateDrawResult(this, imgParams.result);
|
||||
}
|
||||
|
||||
bool nsDisplayFilters::CanCreateWebRenderCommands(
|
||||
nsDisplayListBuilder* aBuilder) {
|
||||
bool nsDisplayFilters::CanCreateWebRenderCommands() {
|
||||
WrFiltersHolder wrFilters;
|
||||
Maybe<nsRect> filterClip;
|
||||
auto filterChain = mFrame->StyleEffects()->mFilters.AsSpan();
|
||||
if (!CreateWebRenderCSSFilters(filterChain, mFrame, wrFilters) &&
|
||||
!nsSVGIntegrationUtils::BuildWebRenderFilters(mFrame, filterChain,
|
||||
wrFilters, filterClip)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return CreateWebRenderCSSFilters(filterChain, mFrame, wrFilters) ||
|
||||
nsSVGIntegrationUtils::BuildWebRenderFilters(mFrame, filterChain,
|
||||
wrFilters, filterClip);
|
||||
}
|
||||
|
||||
bool nsDisplayFilters::CreateWebRenderCommands(
|
||||
|
|
|
@ -6844,7 +6844,7 @@ class nsDisplayFilters : public nsDisplayEffectsBase {
|
|||
const StackingContextHelper& aSc,
|
||||
mozilla::layers::RenderRootStateManager* aManager,
|
||||
nsDisplayListBuilder* aDisplayListBuilder) override;
|
||||
bool CanCreateWebRenderCommands(nsDisplayListBuilder* aBuilder);
|
||||
bool CanCreateWebRenderCommands();
|
||||
|
||||
private:
|
||||
NS_DISPLAY_ALLOW_CLONING()
|
||||
|
|
Загрузка…
Ссылка в новой задаче