scour/scour
Niels Thykier 91503c6d7e renameID: Replace referencedIDs with referringNodes
This change pushes the responsibility of updating referencedIDs to its
callers where needed.  The only caller of renameIDs is shortenIDs and
that works perfectly fine without updating its copy of referencedIDs.
In shortenIDs, we need to be able to lookup which nodes referenced the
"original ID" (and not the "new ID").

While shortenIDs *could* update referencedIDs so it remained valid, it
is extra complexity for no gain.  As an example of this complexity,
imagine if two or more IDs are "rotated" like so:

      Original IDs: a, bb, ccc, dddd
      Mapping:
        dddd -> ccc
        ccc  -> bb
        bb   -> a
        a    -> dddd

While doable within reasonable performance, we do not need to support
it at the moment, so there is no reason to handle that complexity.

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-15 17:35:05 +00:00
..
__init__.py Scour v0.36 2017-08-06 04:55:59 +02:00
scour.py renameID: Replace referencedIDs with referringNodes 2018-04-15 17:35:05 +00:00
svg_regex.py Fix handling of boolean flags in elliptical path commands (#183) 2018-04-08 15:32:47 +02:00
svg_transform.py Some whitespace fixes to make newer versions of flake8 happy 2016-11-27 18:52:39 +01:00
yocto_css.py Consistent whitespace across source files according to PEP 8 2016-09-15 00:35:13 +02:00