Merge "Modify nativeSetProperty to return a boolean indicating if we need to invalidate the content or not."

This commit is contained in:
Nicolas Roard
2011-08-18 15:45:27 -07:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -1807,7 +1807,9 @@ public class WebSettings {
* @hide
*/
public void setProperty(String key, String value) {
mWebView.nativeSetProperty(key, value);
if (mWebView.nativeSetProperty(key, value)) {
mWebView.contentInvalidateAll();
}
}
/**

View File

@@ -9278,6 +9278,6 @@ public class WebView extends AbsoluteLayout
*/
private native boolean nativeScrollLayer(int layer, int newX, int newY);
private native int nativeGetBackgroundColor();
native void nativeSetProperty(String key, String value);
native boolean nativeSetProperty(String key, String value);
native String nativeGetProperty(String key);
}