Index: Source/core/html/forms/FileInputType.cpp |
diff --git a/Source/core/html/forms/FileInputType.cpp b/Source/core/html/forms/FileInputType.cpp |
index e442e4f9fe4f4acc236856cd10700e2ed190b037..a3097a3905549d75f7bcbcc5dbb82c5fbda36ca6 100644 |
--- a/Source/core/html/forms/FileInputType.cpp |
+++ b/Source/core/html/forms/FileInputType.cpp |
@@ -303,8 +303,8 @@ void FileInputType::setFiles(FileList* files) |
input->notifyFormStateChanged(); |
input->setNeedsValidityCheck(); |
- if (input->renderer()) |
- input->renderer()->setShouldDoFullPaintInvalidation(); |
+ if (input->layoutObject()) |
+ input->layoutObject()->setShouldDoFullPaintInvalidation(); |
if (filesChanged) { |
// This call may cause destruction of this instance. |