Merge "Support for correctly scaling text selection handles"

This commit is contained in:
John Reck
2011-09-28 11:11:57 -07:00
committed by Android (Google) Code Review

View File

@@ -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.