third_party/blink/tools/blinkpy/style/filter.py
def _filter_from_path_rules(self, path_rules):
        """Return the CategoryFilter associated to the given path rules.

        Args:
          path_rules: A tuple of path rules.  We require a tuple rather
                      than a list so the value can be used as a dictionary
                      key in self._path_rules_to_filter.
        """
        # We reuse the same CategoryFilter where possible to take
        # advantage of the caching they do.
        if path_rules not in self._path_rules_to_filter:
            rules = list(self._base_rules)  # Make a copy
            rules.extend(path_rules)
            rules.extend(self._user_rules)
            self._path_rules_to_filter[path_rules] = _CategoryFilter(rules)

        return self._path_rules_to_filter[path_rules]
Return the CategoryFilter associated to the given path rules.

        Args:
          path_rules: A tuple of path rules.  We require a tuple rather
                      than a list so the value can be used as a dictionary
                      key in self._path_rules_to_filter.
        
Return the CategoryFilter associated to the given path rules.
Return the CategoryFilter associated to the given path rules .
def _filter_from_path_rules(self, path_rules):
        if path_rules not in self._path_rules_to_filter:
            rules = list(self._base_rules)  
            rules.extend(path_rules)
            rules.extend(self._user_rules)
            self._path_rules_to_filter[path_rules] = _CategoryFilter(rules)
        return self._path_rules_to_filter[path_rules]
def _filter_from_path_rules ( self , path_rules ) : if path_rules not in self . _path_rules_to_filter : rules = list ( self . _base_rules ) rules . extend ( path_rules ) rules . extend ( self . _user_rules ) self . _path_rules_to_filter [ path_rules ] = _CategoryFilter ( rules ) return self . _path_rules_to_filter [ path_rules ]
Return the CategoryFilter associated to the given path rules.
Return the CategoryFilter associated to the given path rules .
"""Return the CategoryFilter associated to the given path rules.

        Args:
          path_rules: A tuple of path rules.  We require a tuple rather
                      than a list so the value can be used as a dictionary
                      key in self._path_rules_to_filter.
        """ # We reuse the same CategoryFilter where possible to take # advantage of the caching they do. # Make a copy
self
path_rules
A tuple of path rules.  We require a tuple rather
than a list so the value can be used as a dictionary
key in self._path_rules_to_filter.
A tuple of path rules . We require a tuple rather than a list so the value can be used as a dictionary key in self . _path_rules_to_filter .