Web Inspector: CodeGeneratorInspector.py: fix output write logic to support increment...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jul 2012 18:10:58 +0000 (18:10 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jul 2012 18:10:58 +0000 (18:10 +0000)
commitd1eadea5de8d511f4216219c2b05c57af58905f3
tree27af53146af456b6a1fa7ad768554a41888e757e
parenta0ceb861b493c925b0e85d93db0ca5661e05572e
Web Inspector: CodeGeneratorInspector.py: fix output write logic to support incremental build
https://bugs.webkit.org/show_bug.cgi?id=90642

Patch by Peter Rybin <peter.rybin@gmail.com> on 2012-07-16
Reviewed by Yury Semikhatsky.

A small intermediate writer is added. It handles comparing old and new source before actual writing.

* inspector/CodeGeneratorInspector.py:
(flatten_list):
(SmartOutput):
(SmartOutput.__init__):
(SmartOutput.write):
(SmartOutput.close):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/inspector/CodeGeneratorInspector.py