diff options
Diffstat (limited to 'Source/WebKit/android/nav/FindCanvas.h')
-rw-r--r-- | Source/WebKit/android/nav/FindCanvas.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebKit/android/nav/FindCanvas.h b/Source/WebKit/android/nav/FindCanvas.h index 994ff17..0fa095c 100644 --- a/Source/WebKit/android/nav/FindCanvas.h +++ b/Source/WebKit/android/nav/FindCanvas.h @@ -222,7 +222,7 @@ public: m_isFindPaintSetUp = false; m_lastBounds.setEmpty(); } - virtual ~FindOnPage() { delete m_matches; } + virtual ~FindOnPage() { if (m_matches) delete m_matches; } void clearCurrentLocation() { m_hasCurrentLocation = false; } IntRect currentMatchBounds() const; int currentMatchIndex() const { return m_findIndex; } @@ -234,6 +234,7 @@ public: void findNext(bool forward); bool isCurrentLocationValid() { return m_hasCurrentLocation; } void setMatches(WTF::Vector<MatchInfo>* matches); + WTF::Vector<MatchInfo>* matches() { return m_matches; } private: void drawMatch(const SkRegion& region, SkCanvas* canvas, bool focused); void setUpFindPaint(); |