RESOLVED FIXED 31921
Use ProgressTracker from the inspected page to generate ids for cached resources
https://bugs.webkit.org/show_bug.cgi?id=31921
Summary Use ProgressTracker from the inspected page to generate ids for cached resources
Yury Semikhatsky
Reported 2009-11-26 13:49:51 PST
Instead of generating negative identifiers for cached resources in InspectorController and extending identifier type from 'unsigned long' to 'long long' it would be better to reuse progress tracker for the inspected page to generate those identifiers. It would guarantee that InspectorResources' ids are unique.
Attachments
patch (7.25 KB, patch)
2009-11-26 14:00 PST, Yury Semikhatsky
no flags
patch (20.65 KB, patch)
2009-11-27 00:43 PST, Yury Semikhatsky
pfeldman: review+
Yury Semikhatsky
Comment 1 2009-11-26 14:00:06 PST
Yury Semikhatsky
Comment 2 2009-11-27 00:43:05 PST
Pavel Feldman
Comment 3 2009-11-27 01:36:40 PST
Comment on attachment 43937 [details] patch I don't think we need to add methods for setting various integers - we don't even use existing ones. Can we optimize it in a way that there are only methods for signed, unsigned and floating point? That API would be easier to maintain and there will not be that much copy-paste in the code.
Yury Semikhatsky
Comment 4 2009-11-27 02:36:56 PST
(In reply to comment #3) > (From update of attachment 43937 [details]) > I don't think we need to add methods for setting various integers - we don't > even use existing ones. Can we optimize it in a way that there are only methods > for signed, unsigned and floating point? That API would be easier to maintain > and there will not be that much copy-paste in the code. We cannot reduce the number of overloaded methods without introducing lots of static_casts because if we had just double and bool there would be ambiguity for ints if we had double, bool and int there is ambiguity for long and so on.
Yury Semikhatsky
Comment 5 2009-11-27 03:13:21 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/bindings/js/ScriptFunctionCall.cpp M WebCore/bindings/js/ScriptFunctionCall.h M WebCore/bindings/js/ScriptObject.cpp M WebCore/bindings/js/ScriptObject.h M WebCore/bindings/v8/ScriptFunctionCall.cpp M WebCore/bindings/v8/ScriptFunctionCall.h M WebCore/bindings/v8/ScriptObject.cpp M WebCore/bindings/v8/ScriptObject.h M WebCore/inspector/InspectorBackend.cpp M WebCore/inspector/InspectorController.cpp M WebCore/inspector/InspectorController.h M WebCore/inspector/InspectorDOMAgent.cpp M WebCore/inspector/InspectorFrontend.cpp M WebCore/inspector/InspectorFrontend.h M WebCore/inspector/InspectorResource.cpp M WebCore/inspector/InspectorResource.h M WebCore/inspector/TimelineRecordFactory.cpp Committed r51439
Note You need to log in before you can comment on or make changes to this bug.