diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index de4d4c729e1c..a3298810c65e 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -1230,6 +1230,9 @@ PresShell::ClearFrameRefs(nsIFrame* aFrame) if (aFrame == mFocusEventFrame) { mFocusEventFrame = nsnull; } + if (aFrame == mAnchorEventFrame) { + mAnchorEventFrame = nsnull; + } return NS_OK; } diff --git a/layout/html/base/src/nsPresShell.cpp b/layout/html/base/src/nsPresShell.cpp index de4d4c729e1c..a3298810c65e 100644 --- a/layout/html/base/src/nsPresShell.cpp +++ b/layout/html/base/src/nsPresShell.cpp @@ -1230,6 +1230,9 @@ PresShell::ClearFrameRefs(nsIFrame* aFrame) if (aFrame == mFocusEventFrame) { mFocusEventFrame = nsnull; } + if (aFrame == mAnchorEventFrame) { + mAnchorEventFrame = nsnull; + } return NS_OK; }