Index: third_party/WebKit/Source/web/OpenedFrameTracker.h |
diff --git a/third_party/WebKit/Source/web/OpenedFrameTracker.h b/third_party/WebKit/Source/web/OpenedFrameTracker.h |
index c6be8f34dff49d117e8ae21e0e9c35e56cb27402..aadfda2229cce8fb5dca0c1bc807d95e5519dad8 100644 |
--- a/third_party/WebKit/Source/web/OpenedFrameTracker.h |
+++ b/third_party/WebKit/Source/web/OpenedFrameTracker.h |
@@ -10,7 +10,6 @@ |
namespace blink { |
-class Visitor; |
class WebFrame; |
// Small helper class to track the set of frames that a WebFrame has opened. |
@@ -31,7 +30,8 @@ class OpenedFrameTracker { |
// opener for opened frames to point to the new frame being swapped in. |
void transferTo(WebFrame*); |
- void traceFrames(Visitor*); |
+ // Helper function to clear the openers when the frame is being detached. |
+ void dispose() { transferTo(nullptr); } |
private: |
WTF::HashSet<WebFrame*> m_openedFrames; |