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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 private: | 67 private: |
68 HTMLTextAreaElement(Document&, HTMLFormElement*); | 68 HTMLTextAreaElement(Document&, HTMLFormElement*); |
69 | 69 |
70 enum WrapMethod { NoWrap, SoftWrap, HardWrap }; | 70 enum WrapMethod { NoWrap, SoftWrap, HardWrap }; |
71 enum SetValueCommonOption { | 71 enum SetValueCommonOption { |
72 NotSetSelection, | 72 NotSetSelection, |
73 SetSeletion | 73 SetSeletion |
74 }; | 74 }; |
75 | 75 |
76 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override; | 76 virtual void didAddClosedShadowRoot(ShadowRoot&) override; |
77 // FIXME: Author shadows should be allowed | 77 // FIXME: Author shadows should be allowed |
78 // https://bugs.webkit.org/show_bug.cgi?id=92608 | 78 // https://bugs.webkit.org/show_bug.cgi?id=92608 |
79 virtual bool areAuthorShadowsAllowed() const override { return false; } | 79 virtual bool areAuthorShadowsAllowed() const override { return false; } |
80 | 80 |
81 void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) const; | 81 void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) const; |
82 static String sanitizeUserInputValue(const String&, unsigned maxLength); | 82 static String sanitizeUserInputValue(const String&, unsigned maxLength); |
83 void updateValue() const; | 83 void updateValue() const; |
84 virtual void setInnerEditorValue(const String&) override; | 84 virtual void setInnerEditorValue(const String&) override; |
85 void setNonDirtyValue(const String&); | 85 void setNonDirtyValue(const String&); |
86 void setValueCommon(const String&, TextFieldEventBehavior, SetValueCommonOpt
ion = NotSetSelection); | 86 void setValueCommon(const String&, TextFieldEventBehavior, SetValueCommonOpt
ion = NotSetSelection); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 WrapMethod m_wrap; | 137 WrapMethod m_wrap; |
138 mutable String m_value; | 138 mutable String m_value; |
139 mutable bool m_isDirty; | 139 mutable bool m_isDirty; |
140 bool m_valueIsUpToDate; | 140 bool m_valueIsUpToDate; |
141 String m_suggestedValue; | 141 String m_suggestedValue; |
142 }; | 142 }; |
143 | 143 |
144 } // namespace blink | 144 } // namespace blink |
145 | 145 |
146 #endif // HTMLTextAreaElement_h | 146 #endif // HTMLTextAreaElement_h |
OLD | NEW |