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

Unified Diff: Source/core/html/forms/InputType.cpp

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use const char[] Created 6 years, 3 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: Source/core/html/forms/InputType.cpp
diff --git a/Source/core/html/forms/InputType.cpp b/Source/core/html/forms/InputType.cpp
index 1cc5a8e27342c883fdec4e1f217cb7f2ae7abc68..2256ab0564054b96801880e7a3a24a875e255624 100644
--- a/Source/core/html/forms/InputType.cpp
+++ b/Source/core/html/forms/InputType.cpp
@@ -550,7 +550,7 @@ bool InputType::shouldDispatchFormControlChangeEvent(String& oldValue, String& n
void InputType::setValue(const String& sanitizedValue, bool valueChanged, TextFieldEventBehavior eventBehavior)
{
element().setValueInternal(sanitizedValue, eventBehavior);
- element().setNeedsStyleRecalc(SubtreeStyleChange);
+ element().setNeedsStyleRecalc(StyleChangeReasonForTracing::ControlValue, SubtreeStyleChange);
if (!valueChanged)
return;
switch (eventBehavior) {

Powered by Google App Engine
This is Rietveld 408576698