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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 2526133003: [CANCELED] Ensure clean style for hasEditableLevel when it doesn't break other stuff (Closed)
Patch Set: Fri Nov 25 14:48:44 JST 2016 Created 4 years, 1 month 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
Index: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index 617e4aa073d2c1297a17e637871cd45cac1a592b..1982b14d8b3c7041278a869ae42b941d9d034132 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -214,8 +214,11 @@ ScrollableArea* AXLayoutObject::getScrollableAreaIfScrollable() const {
return 0;
LayoutBox* box = toLayoutBox(m_layoutObject);
- if (!box->canBeScrolledAndHasScrollableArea())
- return 0;
+ {
+ AutoReset<bool> inAXScope(checkingEditableStyleFromAXIndicator(), true);
+ if (!box->canBeScrolledAndHasScrollableArea())
+ return 0;
+ }
return box->getScrollableArea();
}

Powered by Google App Engine
This is Rietveld 408576698