diff options
Diffstat (limited to 'WebKit/android')
| -rw-r--r-- | WebKit/android/nav/FindCanvas.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WebKit/android/nav/FindCanvas.cpp b/WebKit/android/nav/FindCanvas.cpp index 139bd2c..5f02888 100644 --- a/WebKit/android/nav/FindCanvas.cpp +++ b/WebKit/android/nav/FindCanvas.cpp @@ -553,7 +553,12 @@ void FindOnPage::draw(SkCanvas* canvas, LayerAndroid* layer) { if (matchInfo.layerId() == layerId) { drawMatch(currentMatchRegion, canvas, true); // Now draw the picture, so that it shows up on top of the rectangle + int saveCount = canvas->save(); + SkPath matchPath; + currentMatchRegion.getBoundaryPath(&matchPath); + canvas->clipPath(matchPath); canvas->drawPicture(*matchInfo.getPicture()); + canvas->restoreToCount(saveCount); } // Draw the rest unsigned numberOfMatches = m_matches->size(); |
