Bug 33958 - [Android] JavaField and JavaArray use JSC-specific types
Summary: [Android] JavaField and JavaArray use JSC-specific types
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Android Android
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 33899
Blocks: 32154
  Show dependency treegraph
 
Reported: 2010-01-21 09:08 PST by Steve Block
Modified: 2010-02-02 08:21 PST (History)
4 users (show)

See Also:


Attachments
Patch (56.05 KB, patch)
2010-01-22 06:22 PST, Steve Block
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Block 2010-01-21 09:08:14 PST
WebCore/bridge/jni/JNIBridge.[cpp|h] provides a number of classes.
Of these, JavaField and JavaArray use JSC-specific types.
This causes problems on Android, where we can build with JSC or V8.

These JSC-specific classes should be moved out of JNIBridge.[cpp|h] to allow the file to be used with both JSC and V8.
Comment 1 Steve Block 2010-01-22 06:22:27 PST
Created attachment 47197 [details]
Patch
Comment 2 WebKit Review Bot 2010-01-22 06:25:58 PST
Attachment 47197 [details] did not pass style-queue:

Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1
Traceback (most recent call last):
  File "WebKitTools/Scripts/check-webkit-style", line 94, in <module>
    main()
  File "WebKitTools/Scripts/check-webkit-style", line 87, in main
    style_checker.check_patch(patch)
  File "/mnt/git/webkit-style-queue/WebKitTools/Scripts/webkitpy/style/checker.py", line 915, in check_patch
    self.check_file(file_path, handle_style_error=error_for_patch)
  File "/mnt/git/webkit-style-queue/WebKitTools/Scripts/webkitpy/style/checker.py", line 883, in check_file
    process_file(processor, file_path, handle_style_error)
  File "/mnt/git/webkit-style-queue/WebKitTools/Scripts/webkitpy/style/checker.py", line 838, in _process_file
    processor.process(lines)
AttributeError: 'NoneType' object has no attribute 'process'


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Adam Barth 2010-01-26 01:46:14 PST
Comment on attachment 47197 [details]
Patch

Ok.  I didn't prove to myself that this was just moving code, but I believe you when you say it is.

You even get out of fixing the style nits because the style bot was down when you uploaded your patch.  :)
Comment 4 Steve Block 2010-01-26 01:53:53 PST
Comment on attachment 47197 [details]
Patch

I've checked that the style is good. This patch only moves code from JNIBridge.[cpp|h] and the style in those files was fixed in Bug 33914
Comment 5 WebKit Commit Bot 2010-01-26 04:05:58 PST
Comment on attachment 47197 [details]
Patch

Clearing flags on attachment: 47197

Committed r53849: <http://trac.webkit.org/changeset/53849>
Comment 6 WebKit Commit Bot 2010-01-26 04:06:03 PST
All reviewed patches have been landed.  Closing bug.