| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // https://bugs.webkit.org/show_bug.cgi?id=92608 | 79 // https://bugs.webkit.org/show_bug.cgi?id=92608 |
| 80 bool areAuthorShadowsAllowed() const override { return false; } | 80 bool areAuthorShadowsAllowed() const override { return false; } |
| 81 | 81 |
| 82 void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) const; | 82 void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) const; |
| 83 static String sanitizeUserInputValue(const String&, unsigned maxLength); | 83 static String sanitizeUserInputValue(const String&, unsigned maxLength); |
| 84 void updateValue() const; | 84 void updateValue() const; |
| 85 void setInnerEditorValue(const String&) override; | 85 void setInnerEditorValue(const String&) override; |
| 86 void setNonDirtyValue(const String&); | 86 void setNonDirtyValue(const String&); |
| 87 void setValueCommon(const String&, TextFieldEventBehavior, SetValueCommonOpt
ion = NotSetSelection); | 87 void setValueCommon(const String&, TextFieldEventBehavior, SetValueCommonOpt
ion = NotSetSelection); |
| 88 | 88 |
| 89 bool isPlaceholderVisible() const override { return m_isPlaceholderVisible;
} |
| 90 void setPlaceholderVisibility(bool) override; |
| 89 bool supportsPlaceholder() const override { return true; } | 91 bool supportsPlaceholder() const override { return true; } |
| 90 void updatePlaceholderText() override; | 92 void updatePlaceholderText() override; |
| 91 bool isEmptyValue() const override { return value().isEmpty(); } | 93 bool isEmptyValue() const override { return value().isEmpty(); } |
| 92 bool isEmptySuggestedValue() const final { return suggestedValue().isEmpty()
; } | 94 bool isEmptySuggestedValue() const final { return suggestedValue().isEmpty()
; } |
| 93 bool supportsAutocapitalize() const override { return true; } | 95 bool supportsAutocapitalize() const override { return true; } |
| 94 const AtomicString& defaultAutocapitalize() const override; | 96 const AtomicString& defaultAutocapitalize() const override; |
| 95 | 97 |
| 96 bool isOptionalFormControl() const override { return !isRequiredFormControl(
); } | 98 bool isOptionalFormControl() const override { return !isRequiredFormControl(
); } |
| 97 bool isRequiredFormControl() const override { return isRequired(); } | 99 bool isRequiredFormControl() const override { return isRequired(); } |
| 98 | 100 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool valueMissing(const String*) const; | 137 bool valueMissing(const String*) const; |
| 136 bool tooLong(const String*, NeedsToCheckDirtyFlag) const; | 138 bool tooLong(const String*, NeedsToCheckDirtyFlag) const; |
| 137 bool tooShort(const String*, NeedsToCheckDirtyFlag) const; | 139 bool tooShort(const String*, NeedsToCheckDirtyFlag) const; |
| 138 | 140 |
| 139 unsigned m_rows; | 141 unsigned m_rows; |
| 140 unsigned m_cols; | 142 unsigned m_cols; |
| 141 WrapMethod m_wrap; | 143 WrapMethod m_wrap; |
| 142 mutable String m_value; | 144 mutable String m_value; |
| 143 mutable bool m_isDirty; | 145 mutable bool m_isDirty; |
| 144 bool m_valueIsUpToDate; | 146 bool m_valueIsUpToDate; |
| 147 unsigned m_isPlaceholderVisible : 1; |
| 145 String m_suggestedValue; | 148 String m_suggestedValue; |
| 146 }; | 149 }; |
| 147 | 150 |
| 148 } // namespace blink | 151 } // namespace blink |
| 149 | 152 |
| 150 #endif // HTMLTextAreaElement_h | 153 #endif // HTMLTextAreaElement_h |
| OLD | NEW |