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

Unified Diff: third_party/WebKit/Source/web/TextFinder.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/web/TextFinder.cpp
diff --git a/third_party/WebKit/Source/web/TextFinder.cpp b/third_party/WebKit/Source/web/TextFinder.cpp
index c7bf5df78082fb3b81d86ccfc523f9d678440ed5..3bef0a99e12212414bf51b313653feaebd2f8df5 100644
--- a/third_party/WebKit/Source/web/TextFinder.cpp
+++ b/third_party/WebKit/Source/web/TextFinder.cpp
@@ -169,7 +169,7 @@ bool TextFinder::find(int identifier, const WebString& searchText, const WebFind
mainFrameImpl->ensureTextFinder().m_currentActiveMatchFrame = &ownerFrame();
// Make sure no node is focused. See http://crbug.com/38700.
- ownerFrame().frame()->document()->setFocusedElement(nullptr);
+ ownerFrame().frame()->document()->clearFocusedElement();
if (!options.findNext || activeSelection) {
// This is either a Find operation or a Find-next from a new start point
@@ -630,7 +630,7 @@ int TextFinder::selectFindMatch(unsigned index, WebRect* selectionRect)
ownerFrame().frame()->selection().clear();
// Make sure no node is focused. See http://crbug.com/38700.
- ownerFrame().frame()->document()->setFocusedElement(nullptr);
+ ownerFrame().frame()->document()->clearFocusedElement();
}
IntRect activeMatchRect;
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698