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

Unified Diff: third_party/WebKit/Source/core/html/forms/DateTimeNumericFieldElement.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/DateTimeNumericFieldElement.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/DateTimeNumericFieldElement.cpp b/third_party/WebKit/Source/core/html/forms/DateTimeNumericFieldElement.cpp
index 2c109a430b8190a615eb637a5d7df592fe9d07ab..c4c93a3254660056a0eb0246e520babe4e75b607 100644
--- a/third_party/WebKit/Source/core/html/forms/DateTimeNumericFieldElement.cpp
+++ b/third_party/WebKit/Source/core/html/forms/DateTimeNumericFieldElement.cpp
@@ -93,14 +93,15 @@ int DateTimeNumericFieldElement::DefaultValueForStepUp() const {
}
void DateTimeNumericFieldElement::SetFocused(bool value,
- WebFocusType focus_type) {
+ WebFocusType focus_type,
+ Node* common_ancestor) {
if (!value) {
int value = TypeAheadValue();
type_ahead_buffer_.Clear();
if (value >= 0)
SetValueAsInteger(value, kDispatchEvent);
}
- DateTimeFieldElement::SetFocused(value, focus_type);
+ DateTimeFieldElement::SetFocused(value, focus_type, common_ancestor);
}
String DateTimeNumericFieldElement::FormatValue(int value) const {

Powered by Google App Engine
This is Rietveld 408576698