diff options
author | Steve Block <steveblock@google.com> | 2011-10-12 10:07:57 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-10-12 10:13:39 +0100 |
commit | 5c6c1b6e29c1ab3922e1ff7ac1949bc7d1334a57 (patch) | |
tree | f04da7c9bfbe9a52a672ba4922e7bc399c037223 /Source/WebCore/rendering/RenderLineBoxList.h | |
parent | 6cf7e07ab895af6265850c3df2da05a09977e9a0 (diff) | |
download | external_webkit-5c6c1b6e29c1ab3922e1ff7ac1949bc7d1334a57.zip external_webkit-5c6c1b6e29c1ab3922e1ff7ac1949bc7d1334a57.tar.gz external_webkit-5c6c1b6e29c1ab3922e1ff7ac1949bc7d1334a57.tar.bz2 |
Fix uses of GetByteArrayElements() in WebCoreFrameBridge
Currently, we call GetByteArrayElements() to get a pointer to the data, then
modify it, then fail to call ReleaseByteArrayElements. This means that if
GetByteArrayElements() happens to take a copy of the data, we'll never sync the
modified data back to the JNI object.
This change updates the code to use SetByteArrayRegion() which handles
releasing any copies that are made by JNI.
Also use ScopedLocalRef where possible.
Bug: 5442710
Change-Id: Ic8691eb18cac746ee2a2086017ffb9b5558755bd
Diffstat (limited to 'Source/WebCore/rendering/RenderLineBoxList.h')
0 files changed, 0 insertions, 0 deletions