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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp

Issue 1417363002: Revert of Use FrameSelection::selectedText where possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/html/HTMLTextFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
index 3384b7b6c5d5b56b44e07e2d8cd59a782759e004..b3421b15e87f3c948e148727b9f18a554e1b5353 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
@@ -189,7 +189,6 @@
void HTMLTextFormControlElement::select(NeedToDispatchSelectEvent eventBehaviour)
{
- // We have to update layout here to use isFocusable().
document().updateLayoutIgnorePendingStylesheets();
setSelectionRange(0, std::numeric_limits<int>::max(), SelectionHasNoDirection, eventBehaviour, isFocusable() ? ChangeSelectionAndFocus : NotChangeSelection);
}
@@ -354,10 +353,6 @@
{
if (openShadowRoot() || !isTextFormControl() || !inDocument())
return;
-
- // We need to update layout here so that we have proper types for both dom tree and composed tree selection.
- // See https://codereview.chromium.org/1377963004/
- document().updateLayoutIgnorePendingStylesheets();
const int editorValueLength = static_cast<int>(innerEditorValue().length());
ASSERT(editorValueLength >= 0);

Powered by Google App Engine
This is Rietveld 408576698