Loading core/java/android/webkit/WebView.java +17 −0 Original line number Diff line number Diff line Loading @@ -3955,6 +3955,16 @@ public class WebView extends AbsoluteLayout // requestFormData, and it needs to have the correct nodePointer. mWebTextView.setNodePointer(nodePointer); mWebTextView.setType(nativeFocusCandidateType()); Rect paddingRect = nativeFocusCandidatePaddingRect(); if (paddingRect != null) { // Use contentToViewDimension since these are the dimensions of // the padding. mWebTextView.setPadding( contentToViewDimension(paddingRect.left), contentToViewDimension(paddingRect.top), contentToViewDimension(paddingRect.right), contentToViewDimension(paddingRect.bottom)); } if (null == text) { if (DebugFlags.WEB_VIEW) { Log.v(LOGTAG, "rebuildWebTextView null == text"); Loading Loading @@ -7861,6 +7871,13 @@ public class WebView extends AbsoluteLayout /* package */ native int nativeFocusCandidateMaxLength(); /* package */ native String nativeFocusCandidateName(); private native Rect nativeFocusCandidateNodeBounds(); /** * @return A Rect with left, top, right, bottom set to the corresponding * padding values in the focus candidate, if it is a textfield/textarea with * a style. Otherwise return null. This is not actually a rectangle; Rect * is being used to pass four integers. */ private native Rect nativeFocusCandidatePaddingRect(); /* package */ native int nativeFocusCandidatePointer(); private native String nativeFocusCandidateText(); private native int nativeFocusCandidateTextSize(); Loading Loading
core/java/android/webkit/WebView.java +17 −0 Original line number Diff line number Diff line Loading @@ -3955,6 +3955,16 @@ public class WebView extends AbsoluteLayout // requestFormData, and it needs to have the correct nodePointer. mWebTextView.setNodePointer(nodePointer); mWebTextView.setType(nativeFocusCandidateType()); Rect paddingRect = nativeFocusCandidatePaddingRect(); if (paddingRect != null) { // Use contentToViewDimension since these are the dimensions of // the padding. mWebTextView.setPadding( contentToViewDimension(paddingRect.left), contentToViewDimension(paddingRect.top), contentToViewDimension(paddingRect.right), contentToViewDimension(paddingRect.bottom)); } if (null == text) { if (DebugFlags.WEB_VIEW) { Log.v(LOGTAG, "rebuildWebTextView null == text"); Loading Loading @@ -7861,6 +7871,13 @@ public class WebView extends AbsoluteLayout /* package */ native int nativeFocusCandidateMaxLength(); /* package */ native String nativeFocusCandidateName(); private native Rect nativeFocusCandidateNodeBounds(); /** * @return A Rect with left, top, right, bottom set to the corresponding * padding values in the focus candidate, if it is a textfield/textarea with * a style. Otherwise return null. This is not actually a rectangle; Rect * is being used to pass four integers. */ private native Rect nativeFocusCandidatePaddingRect(); /* package */ native int nativeFocusCandidatePointer(); private native String nativeFocusCandidateText(); private native int nativeFocusCandidateTextSize(); Loading