diff options
Diffstat (limited to 'WebCore')
| -rw-r--r-- | WebCore/history/HistoryItem.cpp | 4 | ||||
| -rw-r--r-- | WebCore/history/android/AndroidWebHistoryBridge.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/WebCore/history/HistoryItem.cpp b/WebCore/history/HistoryItem.cpp index 331dda1..d7eec4d 100644 --- a/WebCore/history/HistoryItem.cpp +++ b/WebCore/history/HistoryItem.cpp @@ -98,10 +98,8 @@ HistoryItem::~HistoryItem() ASSERT(!m_cachedPage); iconDatabase()->releaseIconForPageURL(m_urlString); #ifdef ANDROID_HISTORY_CLIENT -/* if (m_bridge) - m_bridge->detach(this); - */ + m_bridge->detachHistoryItem(); #endif } diff --git a/WebCore/history/android/AndroidWebHistoryBridge.h b/WebCore/history/android/AndroidWebHistoryBridge.h index 338f37c..b15cc86 100644 --- a/WebCore/history/android/AndroidWebHistoryBridge.h +++ b/WebCore/history/android/AndroidWebHistoryBridge.h @@ -46,6 +46,7 @@ public: void setScreenWidthScale(int s) { m_screenWidthScale = s; } int scale() const { return m_scale; } int screenWidthScale() const { return m_screenWidthScale; } + void detachHistoryItem() { m_historyItem = 0; } HistoryItem* historyItem() const { return m_historyItem; } void setActive() { m_active = true; } |
