mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

It should take `nsStyledElement&` instead of `const Element&`. Then, it won't fail and will just return the result of `nsStyleElement::Style()`. Therefore, we can get rid of it. Note that this patch makes all its callers keep using strong pointer because I'm not sure whether the layout APIs which are called with them are safe or not. Differential Revision: https://phabricator.services.mozilla.com/D87982