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

Unified Diff: third_party/WebKit/Source/core/frame/WebFrameWidgetImpl.cpp

Issue 2910223003: [refactor] - Rename and Move WebWidget::CaretOrSelectionRange to WebInputMethodController::GetSelec… (Closed)
Patch Set: Rebase Created 3 years, 5 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/frame/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/core/frame/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/core/frame/WebFrameWidgetImpl.cpp
index 33031eb8c2b27e71efcb15971e7c6a614ca319cd..0eb63c9f3bfa33d1baffd06c3dde69cb1d871a18 100644
--- a/third_party/WebKit/Source/core/frame/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/core/frame/WebFrameWidgetImpl.cpp
@@ -677,20 +677,6 @@ bool WebFrameWidgetImpl::IsSelectionAnchorFirst() const {
return false;
}
-// TODO(ekaramad):This method is almost duplicated in WebViewImpl as well. This
-// code needs to be refactored (http://crbug.com/629721).
-WebRange WebFrameWidgetImpl::CaretOrSelectionRange() {
- LocalFrame* focused = FocusedLocalFrameInWidget();
- if (!focused)
- return WebRange();
-
- // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- focused->GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets();
-
- return focused->GetInputMethodController().GetSelectionOffsets();
-}
-
void WebFrameWidgetImpl::SetTextDirection(WebTextDirection direction) {
// The Editor::setBaseWritingDirection() function checks if we can change
// the text direction of the selected node and updates its DOM "dir"
« no previous file with comments | « third_party/WebKit/Source/core/frame/WebFrameWidgetImpl.h ('k') | third_party/WebKit/Source/core/frame/WebViewFrameWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698