| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 void setCols(int); | 61 void setCols(int); |
| 62 void setRows(int); | 62 void setRows(int); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 HTMLTextAreaElement(const QualifiedName&, Document&, HTMLFormElement*); | 65 HTMLTextAreaElement(const QualifiedName&, Document&, HTMLFormElement*); |
| 66 | 66 |
| 67 enum WrapMethod { NoWrap, SoftWrap, HardWrap }; | 67 enum WrapMethod { NoWrap, SoftWrap, HardWrap }; |
| 68 | 68 |
| 69 virtual void didAddUserAgentShadowRoot(ShadowRoot*) OVERRIDE; | 69 virtual void didAddUserAgentShadowRoot(ShadowRoot*) OVERRIDE; |
| 70 // FIXME: Author shadows should be allowed |
| 71 // https://bugs.webkit.org/show_bug.cgi?id=92608 |
| 72 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } |
| 70 | 73 |
| 71 void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) const; | 74 void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) const; |
| 72 static String sanitizeUserInputValue(const String&, unsigned maxLength); | 75 static String sanitizeUserInputValue(const String&, unsigned maxLength); |
| 73 void updateValue() const; | 76 void updateValue() const; |
| 74 void setNonDirtyValue(const String&); | 77 void setNonDirtyValue(const String&); |
| 75 void setValueCommon(const String&); | 78 void setValueCommon(const String&); |
| 76 | 79 |
| 77 virtual bool supportsPlaceholder() const { return true; } | 80 virtual bool supportsPlaceholder() const { return true; } |
| 78 virtual HTMLElement* placeholderElement() const; | 81 virtual HTMLElement* placeholderElement() const; |
| 79 virtual void updatePlaceholderText(); | 82 virtual void updatePlaceholderText(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 142 |
| 140 inline HTMLTextAreaElement* toHTMLTextAreaElement(Node* node) | 143 inline HTMLTextAreaElement* toHTMLTextAreaElement(Node* node) |
| 141 { | 144 { |
| 142 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTextAreaElement(node)); | 145 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTextAreaElement(node)); |
| 143 return static_cast<HTMLTextAreaElement*>(node); | 146 return static_cast<HTMLTextAreaElement*>(node); |
| 144 } | 147 } |
| 145 | 148 |
| 146 } //namespace | 149 } //namespace |
| 147 | 150 |
| 148 #endif | 151 #endif |
| OLD | NEW |