From 3ce211da38790a873931262f1a8d6806132680f4 Mon Sep 17 00:00:00 2001 From: George Mount Date: Wed, 2 May 2012 16:49:39 -0700 Subject: Fix mapLayerRect to modify the mapped rectangle. Bug 6434432 Change-Id: I42181f232332e4c015ed403d53248b9e0b787043 --- Source/WebKit/android/nav/WebView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/WebKit') diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp index c1d6a88..b490373 100644 --- a/Source/WebKit/android/nav/WebView.cpp +++ b/Source/WebKit/android/nav/WebView.cpp @@ -629,7 +629,7 @@ int getHandleLayerId(SelectText::HandleId handleId, SkIPoint& cursorPoint, void mapLayerRect(int layerId, SkIRect& rect) { const TransformationMatrix* transform = getLayerTransform(layerId); if (transform) - transform->mapRect(rect); + rect = transform->mapRect(rect); } void floatQuadToQuadF(JNIEnv* env, const FloatQuad& nativeTextQuad, -- cgit v1.1