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

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

Issue 2821303005: [selectors4] Use common ancestor strategy for :focus-within (Closed)
Patch Set: Created 3 years, 8 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/TextControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/TextControlElement.cpp b/third_party/WebKit/Source/core/html/TextControlElement.cpp
index bfc92d1c5a04c91fa2bfdd656e5935b3db460cda..c29d5b2ae9770541a3e07fcdfdda337f61780a81 100644
--- a/third_party/WebKit/Source/core/html/TextControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp
@@ -212,8 +212,11 @@ void TextControlElement::ClearValueBeforeFirstUserEdit() {
value_before_first_user_edit_ = String();
}
-void TextControlElement::SetFocused(bool flag, WebFocusType focus_type) {
- HTMLFormControlElementWithState::SetFocused(flag, focus_type);
+void TextControlElement::SetFocused(bool flag,
+ WebFocusType focus_type,
+ Node* common_ancestor) {
+ HTMLFormControlElementWithState::SetFocused(flag, focus_type,
+ common_ancestor);
if (!flag)
DispatchFormControlChangeEvent();

Powered by Google App Engine
This is Rietveld 408576698