Index: Source/modules/accessibility/AXLayoutObject.cpp |
diff --git a/Source/modules/accessibility/AXLayoutObject.cpp b/Source/modules/accessibility/AXLayoutObject.cpp |
index d5141f8e53803331c34e88a0f8b489efec35fedb..be1f4ba8709c377066ea9ce7f890d7fd6bfd36a1 100644 |
--- a/Source/modules/accessibility/AXLayoutObject.cpp |
+++ b/Source/modules/accessibility/AXLayoutObject.cpp |
@@ -1865,7 +1865,8 @@ AXObject::AXRange AXLayoutObject::selection() const |
// Find the closest node that has a corresponding AXObject. |
// This is because some nodes may be aria hidden or might not even have |
// a layout object if they are part of the shadow DOM. |
- while (anchorNode && !getUnignoredObjectFromNode(*anchorNode)) { |
+ while (anchorNode |
+ && !(anchorObject = getUnignoredObjectFromNode(*anchorNode))) { |
if (anchorNode->nextSibling()) |
anchorNode = anchorNode->nextSibling(); |
else |
@@ -1878,7 +1879,8 @@ AXObject::AXRange AXLayoutObject::selection() const |
ASSERT(focusNode); |
RefPtrWillBeRawPtr<AXObject> focusObject = nullptr; |
- while (focusNode && !getUnignoredObjectFromNode(*focusNode)) { |
+ while (focusNode |
+ && !(focusObject = getUnignoredObjectFromNode(*focusNode))) { |
if (focusNode->previousSibling()) |
focusNode = focusNode->previousSibling(); |
else |