RESOLVED FIXED31544
Move StyleQueue over to using PatchCollection
https://bugs.webkit.org/show_bug.cgi?id=31544
Summary Move StyleQueue over to using PatchCollection
Adam Barth
Reported 2009-11-16 04:18:21 PST
That's what infrastructure is for.
Attachments
Patch (7.82 KB, patch)
2009-11-16 04:19 PST, Adam Barth
no flags
Patch (5.85 KB, patch)
2009-11-16 04:20 PST, Adam Barth
eric: review+
Adam Barth
Comment 1 2009-11-16 04:19:20 PST
Adam Barth
Comment 2 2009-11-16 04:20:37 PST
Eric Seidel (no email)
Comment 3 2009-11-16 04:26:10 PST
Comment on attachment 43292 [details] Patch I think add_all should be add_patches add() doens't need to exist. The tests will need to update names if you do that. There is likely some super-slick python way to do this, by implementing the right bits to be a sequence type, but that's more python than I know. I'll CC some python folks though and they can give post-landing comments if they choose.
Adam Barth
Comment 4 2009-11-16 04:29:43 PST
M WebKitTools/ChangeLog M WebKitTools/Scripts/bugzilla-tool M WebKitTools/Scripts/modules/patchcollection.py M WebKitTools/Scripts/modules/patchcollection_unittest.py Committed r51030
Evan Martin
Comment 5 2009-11-16 08:46:00 PST
Not quite sure what you're asking, but if it's about add vs add_all, you can do something like def add(self, *patches): use patches like an array foobar.add(somepatch) # works, passes a one-length array foobar.add(patch1, patch2) # also works foobar.add(*patches) # can also pass arrays so you'd have stuff like + def add_all_from_bug(self, bug_id): + self.add_all(self._bugs.fetch_patches_from_bug(bug_id)) instead be def add_from_bug(self, bug_id): self.add(*self._bugs.fetch_patches_from_bug(bug_id))
Note You need to log in before you can comment on or make changes to this bug.