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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 1433103002: Use FocusParams in FocusController::setFocusedElement and Document::setFocusedElement arguments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/core/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index a16d39805bad93b0e246c7ad68a04ed1b763c103..49cacf9af360f7bfd48001671085b6633139b863 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -350,6 +350,11 @@ void HTMLInputElement::updateFocusAppearance(SelectionBehaviorOnFocus selectionB
case SelectionBehaviorOnFocus::Restore:
restoreCachedSelection();
break;
+ case SelectionBehaviorOnFocus::None:
+ // |None| is used only for FocusController::setFocusedElement and
+ // Document::setFocusedElement, and they don't call
+ // updateFocusAppearance().
+ ASSERT_NOT_REACHED();
}
if (document().frame())
document().frame()->selection().revealSelection();
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLDialogElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698