Merge "Modify nativeSetProperty to return a boolean indicating if we need to invalidate the content or not."
This commit is contained in:
committed by
Android (Google) Code Review
commit
fc8f2ca621
@@ -1807,7 +1807,9 @@ public class WebSettings {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public void setProperty(String key, String value) {
|
public void setProperty(String key, String value) {
|
||||||
mWebView.nativeSetProperty(key, value);
|
if (mWebView.nativeSetProperty(key, value)) {
|
||||||
|
mWebView.contentInvalidateAll();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9278,6 +9278,6 @@ public class WebView extends AbsoluteLayout
|
|||||||
*/
|
*/
|
||||||
private native boolean nativeScrollLayer(int layer, int newX, int newY);
|
private native boolean nativeScrollLayer(int layer, int newX, int newY);
|
||||||
private native int nativeGetBackgroundColor();
|
private native int nativeGetBackgroundColor();
|
||||||
native void nativeSetProperty(String key, String value);
|
native boolean nativeSetProperty(String key, String value);
|
||||||
native String nativeGetProperty(String key);
|
native String nativeGetProperty(String key);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user