| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 element->GetDocument().UpdateStyleAndLayoutTree(); | 183 element->GetDocument().UpdateStyleAndLayoutTree(); |
| 184 if (HasEditableStyle(*element)) | 184 if (HasEditableStyle(*element)) |
| 185 query_attribute = true; | 185 query_attribute = true; |
| 186 } | 186 } |
| 187 | 187 |
| 188 if (!query_attribute) | 188 if (!query_attribute) |
| 189 return AtomicString(); | 189 return AtomicString(); |
| 190 | 190 |
| 191 // TODO(dtapuska): We may wish to restrict this to a yet to be proposed | 191 // TODO(dtapuska): We may wish to restrict this to a yet to be proposed |
| 192 // <contenteditable> or <richtext> element Mozilla discussed at TPAC 2016. | 192 // <contenteditable> or <richtext> element Mozilla discussed at TPAC 2016. |
| 193 return element->FastGetAttribute(HTMLNames::inputmodeAttr).Lower(); | 193 return element->FastGetAttribute(HTMLNames::inputmodeAttr).DeprecatedLower(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 constexpr int kInvalidDeletionLength = -1; | 196 constexpr int kInvalidDeletionLength = -1; |
| 197 constexpr bool IsInvalidDeletionLength(const int length) { | 197 constexpr bool IsInvalidDeletionLength(const int length) { |
| 198 return length == kInvalidDeletionLength; | 198 return length == kInvalidDeletionLength; |
| 199 } | 199 } |
| 200 | 200 |
| 201 int CalculateBeforeDeletionLengthsInCodePoints( | 201 int CalculateBeforeDeletionLengthsInCodePoints( |
| 202 const String& text, | 202 const String& text, |
| 203 const int before_length_in_code_points, | 203 const int before_length_in_code_points, |
| (...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 FinishComposingText(kKeepSelection); | 1232 FinishComposingText(kKeepSelection); |
| 1233 } | 1233 } |
| 1234 | 1234 |
| 1235 DEFINE_TRACE(InputMethodController) { | 1235 DEFINE_TRACE(InputMethodController) { |
| 1236 visitor->Trace(frame_); | 1236 visitor->Trace(frame_); |
| 1237 visitor->Trace(composition_range_); | 1237 visitor->Trace(composition_range_); |
| 1238 SynchronousMutationObserver::Trace(visitor); | 1238 SynchronousMutationObserver::Trace(visitor); |
| 1239 } | 1239 } |
| 1240 | 1240 |
| 1241 } // namespace blink | 1241 } // namespace blink |
| OLD | NEW |