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

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

Issue 2561633005: Change enclosingTextControl to take const Node ptr (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/html/TextControlElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/TextControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/TextControlElement.cpp b/third_party/WebKit/Source/core/html/TextControlElement.cpp
index 91f0510e7cdb1d1dfefa819542462e22bd69961a..1b1bf9d33515b2c7cfc75b66b5dfb1207ae8cf5c 100644
--- a/third_party/WebKit/Source/core/html/TextControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp
@@ -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();
« no previous file with comments | « third_party/WebKit/Source/core/html/TextControlElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698