Commit b43cc54d authored by xiaochengh's avatar xiaochengh Committed by Commit bot

Change enclosingTextControl to take const Node ptr

Function enclosingTextControl(Node*) is not supposed to change anything,
and hence, is changed to take a const Node* instead.

BUG=n/a

Review-Url: https://codereview.chromium.org/2561633005
Cr-Commit-Position: refs/heads/master@{#437499}
parent e9eaa9c7
......@@ -865,7 +865,7 @@ TextControlElement* enclosingTextControl(const Position& position) {
return enclosingTextControl(position.computeContainerNode());
}
TextControlElement* enclosingTextControl(Node* container) {
TextControlElement* enclosingTextControl(const Node* container) {
if (!container)
return nullptr;
Element* ancestor = container->ownerShadowHost();
......
......@@ -223,7 +223,7 @@ inline bool isTextControlElement(const Element& element) {
DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(TextControlElement);
TextControlElement* enclosingTextControl(const Position&);
TextControlElement* enclosingTextControl(Node*);
TextControlElement* enclosingTextControl(const Node*);
} // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment