diff options
Diffstat (limited to 'WebCore/html/HTMLConstructionSite.cpp')
-rw-r--r-- | WebCore/html/HTMLConstructionSite.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/WebCore/html/HTMLConstructionSite.cpp b/WebCore/html/HTMLConstructionSite.cpp index e9bb762..0b17086 100644 --- a/WebCore/html/HTMLConstructionSite.cpp +++ b/WebCore/html/HTMLConstructionSite.cpp @@ -103,10 +103,8 @@ PassRefPtr<ChildType> HTMLConstructionSite::attach(Node* parent, PassRefPtr<Chil // |parent| to hold a ref at this point. In the common case (at least // for elements), however, we'll get to use this ref in the stack of // open elements. - if (parent->attached()) { - ASSERT(!child->attached()); + if (parent->attached() && !child->attached()) child->attach(); - } return child.release(); } |