Changeset 94059 in webkit
- Timestamp:
- Aug 30, 2011, 1:07:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/835/Source/WebCore/rendering/RenderFileUploadControl.cpp
r91566 r94059 64 64 ASSERT(input->isFileUpload()); 65 65 66 if (HTMLInputElement* button = uploadButton()) 67 button->setDisabled(!theme()->isEnabled(this)); 66 if (HTMLInputElement* button = uploadButton()) { 67 bool newDisabled = !theme()->isEnabled(this); 68 // We should avoid to call HTMLFormControlElement::setDisabled() as 69 // possible because setAttribute() in setDisabled() can cause style 70 // recalculation, and HTMLFormControlElement::recalcStyle() calls 71 // updateFromElement() eventually. 72 if (button->disabled() != newDisabled) 73 button->setDisabled(newDisabled); 74 } 68 75 69 76 // This only supports clearing out the files, but that's OK because for
Note:
See TracChangeset
for help on using the changeset viewer.