Index: Source/core/paint/DeprecatedPaintLayer.cpp |
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp |
index b76ef401ce7d5e81619862e1ec501a8019b035d5..b4fcf126916c274bad0055d09d6e399bbf5f8dd8 100644 |
--- a/Source/core/paint/DeprecatedPaintLayer.cpp |
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp |
@@ -2635,7 +2635,7 @@ FilterOperations DeprecatedPaintLayer::computeFilterOperations(const ComputedSty |
ReferenceFilterOperation& referenceOperation = toReferenceFilterOperation(*filterOperation); |
// FIXME: Cache the ReferenceFilter if it didn't change. |
RefPtrWillBeRawPtr<ReferenceFilter> referenceFilter = ReferenceFilter::create(style.effectiveZoom()); |
- referenceFilter->setLastEffect(ReferenceFilterBuilder::build(referenceFilter.get(), *layoutObject(), referenceFilter->sourceGraphic(), |
+ referenceFilter->setLastEffect(ReferenceFilterBuilder::build(referenceFilter.get(), toElement(enclosingElement()), referenceFilter->sourceGraphic(), |
referenceOperation)); |
referenceOperation.setFilter(referenceFilter.release()); |
} |
@@ -2677,7 +2677,7 @@ void DeprecatedPaintLayer::updateOrRemoveFilterEffectBuilder() |
// If the filter fails to build, remove it from the layer. It will still attempt to |
// go through regular processing (e.g. compositing), but never apply anything. |
- if (!filterInfo->builder()->build(layoutObject(), computeFilterOperations(layoutObject()->styleRef()))) |
+ if (!filterInfo->builder()->build(toElement(enclosingElement()), computeFilterOperations(layoutObject()->styleRef()), FilterEffectBuilder::ApplyScale)) |
filterInfo->setBuilder(nullptr); |
} |