Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: Source/core/accessibility/AXObject.cpp

Issue 383153007: Fixes for re-enabling more MSVC level 4 warnings: Source/core/ edition (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/BUILD.gn ('k') | Source/core/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXObject.cpp
diff --git a/Source/core/accessibility/AXObject.cpp b/Source/core/accessibility/AXObject.cpp
index 08d9104b40042ab122302c3b75aed9ddd58578fb..a850124ac3fa3471bfd1d2c9bf36e85de56a89de 100644
--- a/Source/core/accessibility/AXObject.cpp
+++ b/Source/core/accessibility/AXObject.cpp
@@ -720,10 +720,13 @@ void AXObject::scrollToMakeVisibleWithSubFocus(const IntRect& subfocus) const
{
// Search up the parent chain until we find the first one that's scrollable.
AXObject* scrollParent = parentObject();
- ScrollableArea* scrollableArea;
- for (scrollableArea = 0;
- scrollParent && !(scrollableArea = scrollParent->getScrollableAreaIfScrollable());
- scrollParent = scrollParent->parentObject()) { }
+ ScrollableArea* scrollableArea = 0;
+ while (scrollParent) {
+ scrollableArea = scrollParent->getScrollableAreaIfScrollable();
+ if (scrollableArea)
+ break;
+ scrollParent = scrollParent->parentObject();
+ }
if (!scrollableArea)
return;
« no previous file with comments | « Source/core/BUILD.gn ('k') | Source/core/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698