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

Unified Diff: third_party/WebKit/Source/core/editing/Editor.cpp

Issue 2653063004: Make Editor::revealSelectionAfterEditingOperation check document availability (Closed)
Patch Set: Created 3 years, 11 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 | « third_party/WebKit/LayoutTests/editing/inserting/insert_linebreak_remove_frame.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index 0d575276b4020936bb3c81263433baf65d5d9613..ac351aca0cb37c86321900bf054c88568fafe9b5 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -1304,6 +1304,8 @@ void Editor::revealSelectionAfterEditingOperation(
RevealExtentOption revealExtentOption) {
if (m_preventRevealSelection)
return;
+ if (!frame().selection().isAvailable())
+ return;
frame().selection().revealSelection(alignment, revealExtentOption);
}
« no previous file with comments | « third_party/WebKit/LayoutTests/editing/inserting/insert_linebreak_remove_frame.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698