summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLFormControlElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLFormControlElement.h')
-rw-r--r--WebCore/html/HTMLFormControlElement.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/WebCore/html/HTMLFormControlElement.h b/WebCore/html/HTMLFormControlElement.h
index 8b721d8..1960fc3 100644
--- a/WebCore/html/HTMLFormControlElement.h
+++ b/WebCore/html/HTMLFormControlElement.h
@@ -31,6 +31,7 @@ namespace WebCore {
class FormDataList;
class HTMLFormElement;
class RenderTextControl;
+class ValidationMessage;
class ValidityState;
class VisibleSelection;
@@ -84,6 +85,8 @@ public:
virtual bool willValidate() const;
String validationMessage();
+ void updateVisibleValidationMessage();
+ void hideVisibleValidationMessage();
bool checkValidity(Vector<RefPtr<HTMLFormControlElement> >* unhandledInvalidControls = 0);
// This must be called when a validation constraint or control value is changed.
void setNeedsValidityCheck();
@@ -111,6 +114,7 @@ protected:
virtual void dispatchFocusEvent();
virtual void dispatchBlurEvent();
+ virtual void detach();
void removeFromForm();
@@ -131,9 +135,11 @@ private:
virtual HTMLFormElement* virtualForm() const;
virtual bool isDefaultButtonForForm() const;
virtual bool isValidFormControlElement();
+ String visibleValidationMessage() const;
HTMLFormElement* m_form;
OwnPtr<ValidityState> m_validityState;
+ OwnPtr<ValidationMessage> m_validationMessage;
bool m_disabled : 1;
bool m_readOnly : 1;
bool m_required : 1;
@@ -182,8 +188,8 @@ public:
String strippedPlaceholder() const;
bool placeholderShouldBeVisible() const;
- int selectionStart();
- int selectionEnd();
+ int selectionStart() const;
+ int selectionEnd() const;
void setSelectionStart(int);
void setSelectionEnd(int);
void select();