RESOLVED FIXED 22240
Add ifdef around toJS function in Plugin.h
https://bugs.webkit.org/show_bug.cgi?id=22240
Summary Add ifdef around toJS function in Plugin.h
John Abd-El-Malek
Reported 2008-11-13 15:08:04 PST
Need this change in order to get the file to compile in Chromium.
Attachments
patch (913 bytes, patch)
2008-11-13 15:09 PST, John Abd-El-Malek
darin: review-
patch2 (1.03 KB, patch)
2008-11-13 17:02 PST, John Abd-El-Malek
sam: review-
3rd try (1.06 KB, patch)
2008-11-14 12:57 PST, John Abd-El-Malek
timothy: review+
John Abd-El-Malek
Comment 1 2008-11-13 15:09:07 PST
Darin Adler
Comment 2 2008-11-13 16:26:52 PST
Comment on attachment 25139 [details] patch > Index: WebCore/ChangeLog > =================================================================== > --- WebCore/ChangeLog (revision 38377) > +++ WebCore/ChangeLog (working copy) > @@ -1,3 +1,11 @@ > +2008-11-13 jabdelmalek <set EMAIL_ADDRESS environment variable> > + > + Reviewed by NOBODY (OOPS!). > + > + WARNING: NO TEST CASES ADDED OR CHANGED > + > + * plugins/Plugin.h: This is not a sufficient ChangeLog. You need to put your name in, your email address, remove the "WARNING" message since this doesn't need test cases, add the URL of the bug you're fixing, and add a comment explaining the change you're making. The code change is great. I'm going to say review- since it should be easy for you to make a good ChangeLog and re-post the patch with that included.
John Abd-El-Malek
Comment 3 2008-11-13 17:02:17 PST
John Abd-El-Malek
Comment 4 2008-11-13 17:03:01 PST
Comment on attachment 25147 [details] patch2 Thanks for the info, sorry I haven't sent a patch in a long time (and not with this email) so I forgot that I have to edit the changelog. Updated patch.
Darin Adler
Comment 5 2008-11-13 17:03:56 PST
Comment on attachment 25147 [details] patch2 r=me
Sam Weinig
Comment 6 2008-11-13 17:19:49 PST
Comment on attachment 25147 [details] patch2 I don't think the #ifdef is necessary as the code can be removed. JSPlugin.cpp now includes JSMimeType.h
John Abd-El-Malek
Comment 7 2008-11-14 12:57:03 PST
Created attachment 25175 [details] 3rd try You're correct, although the toJS declarations were different (using MimeType vs Plugin pointers). I took out the line and verified that the build works.
Sam Weinig
Comment 8 2008-12-22 14:13:48 PST
This has been fixed, though I don't believe by the attached patch. Closing.
Note You need to log in before you can comment on or make changes to this bug.