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) { |