| Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| index 32f757091bc7672b4cd4d36b70da3af669fd239d..c3a50370f1002c9f13d40face889f2ab41c86829 100644
|
| --- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| @@ -694,7 +694,8 @@ Range* FrameSelection::firstRange() const {
|
| }
|
|
|
| bool FrameSelection::isInPasswordField() const {
|
| - TextControlElement* textControl = enclosingTextControl(start());
|
| + TextControlElement* textControl = enclosingTextControl(
|
| + computeVisibleSelectionInDOMTreeDeprecated().start());
|
| return isHTMLInputElement(textControl) &&
|
| toHTMLInputElement(textControl)->type() == InputTypeNames::password;
|
| }
|
| @@ -945,7 +946,7 @@ HTMLFormElement* FrameSelection::currentForm() const {
|
| // selection is.
|
| Node* start = document().focusedElement();
|
| if (!start)
|
| - start = this->start().anchorNode();
|
| + start = computeVisibleSelectionInDOMTreeDeprecated().start().anchorNode();
|
| if (!start)
|
| return 0;
|
|
|
| @@ -986,7 +987,7 @@ void FrameSelection::revealSelection(const ScrollAlignment& alignment,
|
| break;
|
| }
|
|
|
| - Position start = this->start();
|
| + Position start = computeVisibleSelectionInDOMTreeDeprecated().start();
|
| DCHECK(start.anchorNode());
|
| if (start.anchorNode() && start.anchorNode()->layoutObject()) {
|
| // FIXME: This code only handles scrolling the startContainer's layer, but
|
|
|