Changeset 71772 in webkit
- Timestamp:
- Nov 10, 2010 2:44:23 PM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r71771 r71772 1 2010-11-10 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Crash in documentWillBecomeInactive() when closing window with Reader showing content with SVG 6 https://bugs.webkit.org/show_bug.cgi?id=49084 7 8 Manual test added. 9 10 * manual-tests/svg-deep-clone-to-new-doc.html: Added manual test for reproducing bug since an automated version proved to be a bit tough to craft up. 11 * svg/SVGSVGElement.cpp: Added in necessary document ownership transfer calls. 12 * svg/SVGSVGElement.h: 13 1 14 2010-11-10 Pavel Feldman <pfeldman@chromium.org> 2 15 -
trunk/WebCore/svg/SVGSVGElement.cpp
r71512 r71772 90 90 // see ContainerNode::removeAllChildren, called by its destructor. 91 91 document()->accessSVGExtensions()->removeTimeContainer(this); 92 } 93 94 void SVGSVGElement::willMoveToNewOwnerDocument() 95 { 96 document()->unregisterForDocumentActivationCallbacks(this); 97 SVGStyledLocatableElement::willMoveToNewOwnerDocument(); 98 } 99 100 void SVGSVGElement::didMoveToNewOwnerDocument() 101 { 102 document()->registerForDocumentActivationCallbacks(this); 103 SVGStyledLocatableElement::didMoveToNewOwnerDocument(); 92 104 } 93 105 -
trunk/WebCore/svg/SVGSVGElement.h
r71512 r71772 122 122 Element* getElementById(const AtomicString&) const; 123 123 124 protected: 125 virtual void willMoveToNewOwnerDocument(); 126 virtual void didMoveToNewOwnerDocument(); 127 124 128 private: 125 129 SVGSVGElement(const QualifiedName&, Document*);
Note: See TracChangeset
for help on using the changeset viewer.