author peter chang <>
Fri, 14 Apr 2017 11:58:42 +0800
changeset 403254 5fa3e998d3e5b22301c663837ab4acb1b580ba9f
parent 300191 211d62ae4c2710b6a46a4bd11251b77fca7b9ef8
child 304036 d1a4b331d80bc4daea15a7df4057205483b1f276
child 473817 da3c81f986fa63b42a2874b1791eddcdbfbe8424
permissions -rw-r--r--
Bug 1345017 - Discard compositor animations on the next layer transaction, r=kats Animations in content side could be removed easily by changing CSS, but the CompositorAnimationStorage in parent side doesn't get updated. Therefore, we store the layer's CompositorAnimationsId before layer is destroyed in WebRenderLayerManager and then send out these discarded ids to parent on the next layer transaction. MozReview-Commit-ID: D4kbYsgLl4P

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at

import configobj
import sys
import re
from StringIO import StringIO

    (file, section, key) = sys.argv[1:]
except ValueError:
    print "Usage: <file> <section> <setting>"

with open(file) as fh:
    content = re.sub('^\s*;', '#',, flags=re.M)

c = configobj.ConfigObj(StringIO(content))

    s = c[section]
except KeyError:
    print >>sys.stderr, "Section [%s] not found." % section

    print s[key]
except KeyError:
    print >>sys.stderr, "Key %s not found." % key