RESOLVED WONTFIX 62237
ScriptValue should use OwnHandle
https://bugs.webkit.org/show_bug.cgi?id=62237
Summary ScriptValue should use OwnHandle
Adam Barth
Reported 2011-06-07 15:21:15 PDT
ScriptValue should use OwnHandle
Attachments
Patch (4.81 KB, patch)
2011-06-07 15:21 PDT, Adam Barth
abarth: review-
webkit.review.bot: commit-queue-
Adam Barth
Comment 1 2011-06-07 15:21:51 PDT
Eric Seidel (no email)
Comment 2 2011-06-07 16:32:23 PDT
Comment on attachment 96310 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=96310&action=review > Source/WebCore/bindings/v8/ScriptValue.h:66 > + if (value.m_value.get().IsEmpty()) I see. We can't use -> here because the returned value is not a pointer? I still wonder if we shouldn't override -> on OwnHandle to make it work like a poitner.
WebKit Review Bot
Comment 3 2011-06-07 16:50:13 PDT
Comment on attachment 96310 [details] Patch Attachment 96310 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/8776453
WebKit Review Bot
Comment 4 2011-06-07 19:23:35 PDT
Comment on attachment 96310 [details] Patch Attachment 96310 [details] did not pass cr-mac-ews (chromium): Output: http://queues.webkit.org/results/8786386
Alexey Proskuryakov
Comment 5 2011-06-07 21:51:49 PDT
OwnHandle or OwnPtr?
Adam Barth
Comment 6 2011-06-07 21:53:04 PDT
(In reply to comment #5) > OwnHandle or OwnPtr? OwnHandle. It puts v8::Persistent through it's New/Dispose/Clear lifecycle.
Eric Seidel (no email)
Comment 7 2011-06-07 22:42:49 PDT
Comment on attachment 96310 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=96310&action=review > Source/WebCore/bindings/v8/ScriptValue.h:162 > + mutable OwnPtr<v8::Value> m_value; Except you used an OwnPtr...
Adam Barth
Comment 8 2011-06-07 22:52:33 PDT
> Except you used an OwnPtr... I think I was "on tilt" when I wrote these patches. You should just R- them. I'll try again another day.
Note You need to log in before you can comment on or make changes to this bug.