Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / RenderFileUploadControl.cpp
index eeffc7e..82298f4 100644 (file)
@@ -22,6 +22,7 @@
 #include "core/rendering/RenderFileUploadControl.h"
 
 #include "core/HTMLNames.h"
+#include "core/InputTypeNames.h"
 #include "core/dom/shadow/ElementShadow.h"
 #include "core/dom/shadow/ShadowRoot.h"
 #include "core/editing/PositionWithAffinity.h"
@@ -58,7 +59,7 @@ RenderFileUploadControl::~RenderFileUploadControl()
 void RenderFileUploadControl::updateFromElement()
 {
     HTMLInputElement* input = toHTMLInputElement(node());
-    ASSERT(input->isFileUpload());
+    ASSERT(input->type() == InputTypeNames::file);
 
     if (HTMLInputElement* button = uploadButton()) {
         bool newCanReceiveDroppedFilesState = input->canReceiveDroppedFiles();
@@ -73,7 +74,7 @@ void RenderFileUploadControl::updateFromElement()
     FileList* files = input->files();
     ASSERT(files);
     if (files && files->isEmpty())
-        paintInvalidationForWholeRenderer();
+        setShouldDoFullPaintInvalidation(true);
 }
 
 static int nodeWidth(Node* node)