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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2634453003: Remove SelectionBehaviorOnFocus argument of Document::updateFocusAppearanceSoon(). (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
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index cc9914e886fe1872f95cc0736bf3be6a8cec083e..4ef1f145ef7d701f869a4dbd23946f65cc92e5f4 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -435,7 +435,6 @@ Document::Document(const DocumentInit& initializer,
m_gotoAnchorNeededAfterStylesheetsLoad(false),
m_containsValidityStyleRules(false),
m_containsPlugins(false),
- m_updateFocusAppearanceSelectionBahavior(SelectionBehaviorOnFocus::Reset),
m_ignoreDestructiveWriteCount(0),
m_throwOnDynamicMarkupInsertionCount(0),
m_markers(new DocumentMarkerController(*this)),
@@ -5577,9 +5576,7 @@ bool Document::isContextThread() const {
return isMainThread();
}
-void Document::updateFocusAppearanceSoon(
- SelectionBehaviorOnFocus selectionbehavioronfocus) {
- m_updateFocusAppearanceSelectionBahavior = selectionbehavioronfocus;
+void Document::updateFocusAppearanceLater() {
if (!m_updateFocusAppearanceTimer.isActive())
m_updateFocusAppearanceTimer.startOneShot(0, BLINK_FROM_HERE);
}
@@ -5594,7 +5591,7 @@ void Document::updateFocusAppearanceTimerFired(TimerBase*) {
return;
updateStyleAndLayout();
if (element->isFocusable())
- element->updateFocusAppearance(m_updateFocusAppearanceSelectionBahavior);
+ element->updateFocusAppearance(SelectionBehaviorOnFocus::Restore);
}
void Document::attachRange(Range* range) {
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698