diff options
author | John Reck <jreck@google.com> | 2012-02-01 09:47:34 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-02-01 15:06:40 -0800 |
commit | a21f4ae9448c287a3af2010accf179c8d54dcfe4 (patch) | |
tree | 7d649d83e8fb4d8da450121a9ee15eaf738cfadc /Source/WebKit/android/nav/DrawExtra.cpp | |
parent | 241f50e7db9a790bba271aebe4b276375c33a172 (diff) | |
download | external_webkit-a21f4ae9448c287a3af2010accf179c8d54dcfe4.zip external_webkit-a21f4ae9448c287a3af2010accf179c8d54dcfe4.tar.gz external_webkit-a21f4ae9448c287a3af2010accf179c8d54dcfe4.tar.bz2 |
Fix text selection on iframes
Change-Id: Ie1943ef0ba2d353fac20ff67f78a1647921daec4
Diffstat (limited to 'Source/WebKit/android/nav/DrawExtra.cpp')
-rw-r--r-- | Source/WebKit/android/nav/DrawExtra.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebKit/android/nav/DrawExtra.cpp b/Source/WebKit/android/nav/DrawExtra.cpp index 564cc21..2f57dc1 100644 --- a/Source/WebKit/android/nav/DrawExtra.cpp +++ b/Source/WebKit/android/nav/DrawExtra.cpp @@ -51,7 +51,8 @@ SkRegion* RegionLayerDrawExtra::getHighlightRegionsForLayer(const LayerAndroid* return m_highlightRegions.get(layerId); } -void RegionLayerDrawExtra::addHighlightRegion(const LayerAndroid* layer, const Vector<IntRect>& rects) +void RegionLayerDrawExtra::addHighlightRegion(const LayerAndroid* layer, const Vector<IntRect>& rects, + const IntPoint& additionalOffset) { if (rects.isEmpty()) return; @@ -61,7 +62,7 @@ void RegionLayerDrawExtra::addHighlightRegion(const LayerAndroid* layer, const V region = new SkRegion(); m_highlightRegions.set(layerId, region); } - IntPoint offset; + IntPoint offset = additionalOffset; WebViewCore::layerToAbsoluteOffset(layer, offset); for (size_t i = 0; i < rects.size(); i++) { IntRect r = rects.at(i); |