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

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

Issue 2003793002: Audit the use of updateStyleAndLayoutIgnorePendingStylesheets in PlainTextRange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated some comments. Created 4 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
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 cf28e553d312c292124916237f4dd6051d5092b5..109ce6a7fd73d77a726e80761d2b9058de9c5a4e 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -2029,6 +2029,11 @@ void AXLayoutObject::setSelection(const AXRange& selection)
if (!frame)
return;
+ // TODO(dglazkov): The use of updateStyleAndLayoutIgnorePendingStylesheets needs to be audited.
+ // see http://crbug.com/590369 for more details.
+ // This callsite should probably move up the stack.
+ frame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
+
// Set the selection based on visible positions, because the offsets in accessibility nodes
// are based on visible indexes, which often skips redundant whitespace, for example.
VisiblePosition anchorVisiblePosition = anchorNode->isTextNode()

Powered by Google App Engine
This is Rietveld 408576698