Remove BLINK_SCALE_FILTERS_AT_RECORD_TIME #ifdef.

Remove the above #ifdef, unused now that crrev.com/288436 has landed.

BUG=281516

Review URL: https://codereview.chromium.org/461693002

git-svn-id: svn://svn.chromium.org/blink/trunk@179986 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 05181a82
......@@ -86,11 +86,7 @@ bool FilterOperationResolver::createFilterOperations(CSSValue* inValue, const CS
if (!inValue->isValueList())
return false;
#ifdef BLINK_SCALE_FILTERS_AT_RECORD_TIME
float zoomFactor = unadjustedConversionData.zoom() * state.elementStyleResources().deviceScaleFactor();
#else
float zoomFactor = unadjustedConversionData.zoom();
#endif
const CSSToLengthConversionData& conversionData = unadjustedConversionData.copyWithAdjustedZoom(zoomFactor);
FilterOperations operations;
for (CSSValueListIterator i = inValue; i.hasMore(); i.advance()) {
......
......@@ -87,11 +87,7 @@ bool FilterEffectRenderer::build(RenderObject* renderer, const FilterOperations&
// Inverse zoom the pre-zoomed CSS shorthand filters, so that they are in the same zoom as the unzoomed reference filters.
const RenderStyle* style = renderer->style();
#ifdef BLINK_SCALE_FILTERS_AT_RECORD_TIME
float invZoom = 1.0f / ((style ? style->effectiveZoom() : 1.0f) * deviceScaleFactor(renderer->frame()));
#else
float invZoom = style ? 1.0f / style->effectiveZoom() : 1.0f;
#endif
RefPtr<FilterEffect> previousEffect = m_sourceGraphic;
for (size_t i = 0; i < operations.operations().size(); ++i) {
......
......@@ -3605,11 +3605,7 @@ FilterOperations RenderLayer::computeFilterOperations(const RenderStyle* style)
ReferenceFilterOperation* referenceOperation = toReferenceFilterOperation(filterOperation);
// FIXME: Cache the ReferenceFilter if it didn't change.
RefPtr<ReferenceFilter> referenceFilter = ReferenceFilter::create();
#ifdef BLINK_SCALE_FILTERS_AT_RECORD_TIME
float zoom = style->effectiveZoom() * blink::deviceScaleFactor(renderer()->frame());
#else
float zoom = style->effectiveZoom();
#endif
referenceFilter->setAbsoluteTransform(AffineTransform().scale(zoom, zoom));
referenceFilter->setLastEffect(ReferenceFilterBuilder::build(referenceFilter.get(), renderer(), referenceFilter->sourceGraphic(),
referenceOperation));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment