-
darin@apple.com authored
Reviewed by Andreas Kling. Reduce use of HTMLInputElement::inputType so we can remove it later https://bugs.webkit.org/show_bug.cgi?id=45903 * src/DOMUtilitiesPrivate.cpp: (WebKit::elementHasLegalLinkAttribute): Use isImageButton. * src/WebPasswordFormUtils.cpp: (WebKit::findPasswordFormFields): Use isPasswordField. * src/WebSearchableFormData.cpp: (WebCore::IsInDefaultState): Use isCheckbox and isRadioButton. (WebCore::HasSuitableTextElement): Use isFileUpload and isPasswordField. 2010-09-16 Darin Adler <darin@apple.com> Reviewed by Andreas Kling. Reduce use of HTMLInputElement::inputType so we can remove it later https://bugs.webkit.org/show_bug.cgi?id=45903 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId): Use isPasswordField. 2010-09-16 Darin Adler <darin@apple.com> Reviewed by Andreas Kling. Reduce use of HTMLInputElement::inputType so we can remove it later https://bugs.webkit.org/show_bug.cgi?id=45903 * WebFrame.cpp: (WebFrame::elementDoesAutoComplete): Use isPasswordField. (WebFrame::elementIsPassword): Use isPasswordField. 2010-09-16 Darin Adler <darin@apple.com> Reviewed by Andreas Kling. Reduce use of HTMLInputElement::inputType so we can remove it later https://bugs.webkit.org/show_bug.cgi?id=45903 * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation elementDoesAutoComplete:]): Use isPasswordField. (-[WebHTMLRepresentation elementIsPassword:]): Use isPasswordField. 2010-09-16 Darin Adler <darin@apple.com> Reviewed by Andreas Kling. Reduce use of HTMLInputElement::inputType so we can remove it later https://bugs.webkit.org/show_bug.cgi?id=45903 * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::isFileUploadButton): Use isFileUpload. (WebCore::AccessibilityRenderObject::isInputImage): Use isImageButton. (WebCore::AccessibilityRenderObject::determineAccessibilityRole): Use isCheckbox and isRadioButton. * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::adjustRenderStyle): Use isImageButton. * editing/Editor.cpp: (WebCore::Editor::setBaseWritingDirection): Use isTextField. * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): Use isPasswordField. * editing/SelectionController.cpp: (WebCore::SelectionController::isInPasswordField): Use isPasswordField. * html/HTMLInputElement.h: Added isFileUpload, isImageButton, and isSubmitButton. * page/Chrome.cpp: (WebCore::Chrome::setToolTip): Use isSubmitButton and isFileUpload. * page/DragController.cpp: (WebCore::asFileInput): Use isFileUpload. * page/EventHandler.cpp: (WebCore::isSubmitImage): Use isImageButton. * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::updateFromElement): Use isFileUpload. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a6cb255b