Title: [209751] trunk/Source/WebCore
- Revision
- 209751
- Author
- [email protected]
- Date
- 2016-12-12 18:20:58 -0800 (Mon, 12 Dec 2016)
Log Message
Drop unnecessary null check in removeDetachedChildrenInContainer()
https://bugs.webkit.org/show_bug.cgi?id=165778
Reviewed by Alex Christensen.
Drop unnecessary null check in removeDetachedChildrenInContainer().
Node cannot be null but we do an implicit null check.
No new tests, no Web-exposed behavior change.
* dom/ContainerNodeAlgorithms.cpp:
(WebCore::removeDetachedChildrenInContainer):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (209750 => 209751)
--- trunk/Source/WebCore/ChangeLog 2016-12-13 02:05:42 UTC (rev 209750)
+++ trunk/Source/WebCore/ChangeLog 2016-12-13 02:20:58 UTC (rev 209751)
@@ -1,5 +1,20 @@
2016-12-12 Chris Dumez <[email protected]>
+ Drop unnecessary null check in removeDetachedChildrenInContainer()
+ https://bugs.webkit.org/show_bug.cgi?id=165778
+
+ Reviewed by Alex Christensen.
+
+ Drop unnecessary null check in removeDetachedChildrenInContainer().
+ Node cannot be null but we do an implicit null check.
+
+ No new tests, no Web-exposed behavior change.
+
+ * dom/ContainerNodeAlgorithms.cpp:
+ (WebCore::removeDetachedChildrenInContainer):
+
+2016-12-12 Chris Dumez <[email protected]>
+
Add Document.onvisibilitychange event handler attribute
https://bugs.webkit.org/show_bug.cgi?id=165784
Modified: trunk/Source/WebCore/dom/ContainerNodeAlgorithms.cpp (209750 => 209751)
--- trunk/Source/WebCore/dom/ContainerNodeAlgorithms.cpp 2016-12-13 02:05:42 UTC (rev 209750)
+++ trunk/Source/WebCore/dom/ContainerNodeAlgorithms.cpp 2016-12-13 02:20:58 UTC (rev 209751)
@@ -224,7 +224,7 @@
if (!next)
tail = nullptr;
- if (is<ContainerNode>(node))
+ if (is<ContainerNode>(*node))
addChildNodesToDeletionQueue(head, tail, downcast<ContainerNode>(*node));
delete node;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes