    def inherit_defs(self):
        """Handle inheritance of different defined elements lists."""
        for defs in (self.gradients, self.patterns):
            for element in defs.values():
                self.inherit_element(element, defs)
Handle inheritance of different defined elements lists.
weasyprint/svg/__init__.py