Title: [259376] trunk/Source/WebCore
- Revision
- 259376
- Author
- shihchieh_...@apple.com
- Date
- 2020-04-01 19:31:24 -0700 (Wed, 01 Apr 2020)
Log Message
Remove the unnecessary null check for document
https://bugs.webkit.org/show_bug.cgi?id=209819
Reviewed by Ryosuke Niwa.
No new tests, covered by existing test.
* dom/Node.cpp:
(WebCore::Node::removedFromAncestor):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (259375 => 259376)
--- trunk/Source/WebCore/ChangeLog 2020-04-02 00:35:02 UTC (rev 259375)
+++ trunk/Source/WebCore/ChangeLog 2020-04-02 02:31:24 UTC (rev 259376)
@@ -1,3 +1,15 @@
+2020-04-01 Jack Lee <shihchieh_...@apple.com>
+
+ Remove the unnecessary null check for document
+ https://bugs.webkit.org/show_bug.cgi?id=209819
+
+ Reviewed by Ryosuke Niwa.
+
+ No new tests, covered by existing test.
+
+ * dom/Node.cpp:
+ (WebCore::Node::removedFromAncestor):
+
2020-04-01 Wenson Hsieh <wenson_hs...@apple.com>
Remove some PLATFORM(IOS_FAMILY) guards in TextFieldInputType
Modified: trunk/Source/WebCore/dom/Node.cpp (259375 => 259376)
--- trunk/Source/WebCore/dom/Node.cpp 2020-04-02 00:35:02 UTC (rev 259375)
+++ trunk/Source/WebCore/dom/Node.cpp 2020-04-02 02:31:24 UTC (rev 259376)
@@ -1304,10 +1304,8 @@
if (isInShadowTree() && !treeScope().rootNode().isShadowRoot())
clearFlag(IsInShadowTreeFlag);
if (removalType.disconnectedFromDocument) {
- if (auto* document = &oldParentOfRemovedTree.treeScope().documentScope()) {
- if (auto* cache = document->existingAXObjectCache())
- cache->remove(*this);
- }
+ if (auto* cache = oldParentOfRemovedTree.document().existingAXObjectCache())
+ cache->remove(*this);
}
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes