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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXSVGRoot.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/AXSVGRoot.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp b/third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp
index 34be018a9013241018d38df85ec85dd79b9e48fb..c2fbcc8445b1d1967145dd8291c3f921e148a402 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp
@@ -59,6 +59,7 @@ void AXSVGRoot::setParent(AXObject* parent)
AXObject* AXSVGRoot::computeParent() const
{
+ ASSERT(!isDetached());
// If a parent was set because this is a remote SVG resource, use that
// but otherwise, we should rely on the standard layout tree for the parent.
if (m_parent)

Powered by Google App Engine
This is Rietveld 408576698