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

Unified Diff: third_party/WebKit/Source/core/html/forms/DateTimeFieldElement.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/forms/DateTimeFieldElement.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/DateTimeFieldElement.cpp b/third_party/WebKit/Source/core/html/forms/DateTimeFieldElement.cpp
index e7269be199cec71607a4804725b8329a2e86b6f5..7cd80882e62e0351a042c6690879a4a35527948f 100644
--- a/third_party/WebKit/Source/core/html/forms/DateTimeFieldElement.cpp
+++ b/third_party/WebKit/Source/core/html/forms/DateTimeFieldElement.cpp
@@ -131,7 +131,9 @@ void DateTimeFieldElement::DefaultKeyboardEventHandler(
}
}
-void DateTimeFieldElement::SetFocused(bool value, WebFocusType focus_type) {
+void DateTimeFieldElement::SetFocused(bool value,
+ WebFocusType focus_type,
+ Node* common_ancestor) {
if (field_owner_) {
if (value) {
field_owner_->DidFocusOnField(focus_type);
@@ -140,7 +142,7 @@ void DateTimeFieldElement::SetFocused(bool value, WebFocusType focus_type) {
}
}
- ContainerNode::SetFocused(value, focus_type);
+ ContainerNode::SetFocused(value, focus_type, common_ancestor);
}
void DateTimeFieldElement::FocusOnNextField() {

Powered by Google App Engine
This is Rietveld 408576698