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

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

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/FileInputType.cpp
diff --git a/Source/core/html/forms/FileInputType.cpp b/Source/core/html/forms/FileInputType.cpp
index ddf8bff97a7d6a71056b63209c16ecede82b7f60..b9e61d176772391e08425e8d612a4100f8a5475f 100644
--- a/Source/core/html/forms/FileInputType.cpp
+++ b/Source/core/html/forms/FileInputType.cpp
@@ -213,7 +213,7 @@ void FileInputType::setValue(const String&, bool valueChanged, TextFieldEventBeh
return;
m_fileList->clear();
- element().setNeedsStyleRecalc(SubtreeStyleChange);
+ element().setNeedsStyleRecalc(StyleRecalcDueToControlValue, SubtreeStyleChange);
element().setNeedsValidityCheck();
}

Powered by Google App Engine
This is Rietveld 408576698