am 55b039f1: Merge "Support for correctly scaling text selection handles"
* commit '55b039f1b7ecb0439e095082e82c4d4fa2627921': Support for correctly scaling text selection handles
This commit is contained in:
@@ -2392,6 +2392,12 @@ public class WebView extends AbsoluteLayout
|
||||
return mZoomManager.getScale();
|
||||
}
|
||||
|
||||
// Called by JNI. Returns the scale to apply to the text selection handles
|
||||
/* package */ float getTextHandleScale() {
|
||||
float density = mContext.getResources().getDisplayMetrics().density;
|
||||
return density / getScale();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the reading level scale of the WebView
|
||||
* @return The reading level scale.
|
||||
|
||||
Reference in New Issue
Block a user