The CSS FilterOperations have a hierarchy of base and super classes. Instead of having static calculateOutsets functions in CSSFilter.cpp for every FilterOperation we can make them virtual functions and call them through the base class FilterOperation. The only exception is ReferenceFilterOperation which requires access to the renderer and the filterElement. Accessing these classes from a platform file is a layering violation. So we still need to call calculateReferenceFilterOutsets() from CSSFilter::calculateOutsets() as a special case.
Pull request: https://github.com/WebKit/WebKit/pull/3160
Committed 253283@main (831f062e4ac0): <https://commits.webkit.org/253283@main> Reviewed commits have been landed. Closing PR #3160 and removing active labels.
<rdar://problem/98427858>