Title: [206299] trunk/Source/WebCore
- Revision
- 206299
- Author
- [email protected]
- Date
- 2016-09-23 07:16:57 -0700 (Fri, 23 Sep 2016)
Log Message
Replace redundant prepareForDestruction() call with RELEASE_ASSERT in Document::removedLastRef.
https://bugs.webkit.org/show_bug.cgi?id=162467
Reviewed by Chris Dumez.
Since r205786 fixed the root cause of webkit.org/b/159372, we no longer need the workaround.
Replace it with a RELEASE_ASSERT to ensure clean state.
No new tests, covered by existing test.
* dom/Document.cpp:
(WebCore::Document::removedLastRef):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (206298 => 206299)
--- trunk/Source/WebCore/ChangeLog 2016-09-23 12:05:27 UTC (rev 206298)
+++ trunk/Source/WebCore/ChangeLog 2016-09-23 14:16:57 UTC (rev 206299)
@@ -1,3 +1,18 @@
+2016-09-22 Zalan Bujtas <[email protected]>
+
+ Replace redundant prepareForDestruction() call with RELEASE_ASSERT in Document::removedLastRef.
+ https://bugs.webkit.org/show_bug.cgi?id=162467
+
+ Reviewed by Chris Dumez.
+
+ Since r205786 fixed the root cause of webkit.org/b/159372, we no longer need the workaround.
+ Replace it with a RELEASE_ASSERT to ensure clean state.
+
+ No new tests, covered by existing test.
+
+ * dom/Document.cpp:
+ (WebCore::Document::removedLastRef):
+
2016-09-23 Antoine Quint <[email protected]>
Add a new runtime flag for work on modern media controls (off by default)
Modified: trunk/Source/WebCore/dom/Document.cpp (206298 => 206299)
--- trunk/Source/WebCore/dom/Document.cpp 2016-09-23 12:05:27 UTC (rev 206298)
+++ trunk/Source/WebCore/dom/Document.cpp 2016-09-23 14:16:57 UTC (rev 206299)
@@ -668,7 +668,7 @@
// until after removeDetachedChildren returns, so we protect ourselves.
incrementReferencingNodeCount();
- prepareForDestruction();
+ RELEASE_ASSERT(!hasLivingRenderTree());
// We must make sure not to be retaining any of our children through
// these extra pointers or we will create a reference cycle.
m_focusedElement = nullptr;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes