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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2678683002: Delay instantiating InputDeviceCapabilities until accessed. (Closed)
Patch Set: rebased Created 3 years, 10 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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 859ed9967d4c420907b7b2fb2ce70167129e7875..501dbc9c8fbdb5a03888f207cf53f5198b65d07f 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1767,8 +1767,9 @@ void WebLocalFrameImpl::setFindEndstateFocusAndSelection() {
.setBaseAndExtent(activeMatchRange)
.build());
frame()->document()->setFocusedElement(
- &element, FocusParams(SelectionBehaviorOnFocus::None,
- WebFocusTypeNone, nullptr));
+ &element,
+ FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeNone,
+ InputDeviceCapabilities::Null));
return;
}
}
@@ -1783,8 +1784,9 @@ void WebLocalFrameImpl::setFindEndstateFocusAndSelection() {
Element& element = toElement(runner);
if (element.isFocusable()) {
frame()->document()->setFocusedElement(
- &element, FocusParams(SelectionBehaviorOnFocus::None,
- WebFocusTypeNone, nullptr));
+ &element,
+ FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeNone,
+ InputDeviceCapabilities::Null));
return;
}
}
« no previous file with comments | « third_party/WebKit/Source/web/WebFormControlElement.cpp ('k') | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698