Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(779)

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXScrollView.cpp

Issue 1207613004: Fix leaking AXNodeObjects when sub document detaches (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/accessibility/AXScrollView.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXScrollView.cpp b/third_party/WebKit/Source/modules/accessibility/AXScrollView.cpp
index e4cd6c2d8df26405a041fd431783f2f462fcc199..de01c30e6298a6390f3ed1c6074a879aaa9ea07a 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXScrollView.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXScrollView.cpp
@@ -171,6 +171,7 @@ bool AXScrollView::computeAccessibilityIsIgnored(IgnoredReasons* ignoredReasons)
void AXScrollView::addChildren()
{
+ ASSERT(!isDetached());
ASSERT(!m_haveChildren);
m_haveChildren = true;
@@ -225,6 +226,7 @@ FrameView* AXScrollView::documentFrameView() const
AXObject* AXScrollView::computeParent() const
{
+ ASSERT(!isDetached());
if (!m_scrollView || !m_scrollView->isFrameView())
return 0;

Powered by Google App Engine
This is Rietveld 408576698