#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"
void RenderFileUploadControl::updateFromElement()
{
HTMLInputElement* input = toHTMLInputElement(node());
- ASSERT(input->isFileUpload());
+ ASSERT(input->type() == InputTypeNames::file);
if (HTMLInputElement* button = uploadButton()) {
bool newCanReceiveDroppedFilesState = input->canReceiveDroppedFiles();
FileList* files = input->files();
ASSERT(files);
if (files && files->isEmpty())
- paintInvalidationForWholeRenderer();
+ setShouldDoFullPaintInvalidation(true);
}
static int nodeWidth(Node* node)