Chromium Code Reviews| 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 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1186 return WebTextInputTypeDateTimeField; | 1186 return WebTextInputTypeDateTimeField; |
| 1187 } | 1187 } |
| 1188 | 1188 |
| 1189 document().updateStyleAndLayoutTree(); | 1189 document().updateStyleAndLayoutTree(); |
| 1190 if (hasEditableStyle(*element)) | 1190 if (hasEditableStyle(*element)) |
| 1191 return WebTextInputTypeContentEditable; | 1191 return WebTextInputTypeContentEditable; |
| 1192 | 1192 |
| 1193 return WebTextInputTypeNone; | 1193 return WebTextInputTypeNone; |
| 1194 } | 1194 } |
| 1195 | 1195 |
| 1196 void InputMethodController::willChangeFocusTo(Element* newElement) { | |
|
yosin_UTC9
2016/12/07 09:38:19
Q: Do we need to take |newElement|? It can be in a
Changwan Ryu
2016/12/08 01:16:29
Removed this parameter for now.
| |
| 1197 if (finishComposingText(DoNotKeepSelection)) | |
|
yosin_UTC9
2016/12/07 09:38:19
nit: Could you make early return style?
if (!fini
Changwan Ryu
2016/12/08 01:16:30
Done
| |
| 1198 frame().chromeClient().resetInputMethod(); | |
| 1199 } | |
| 1200 | |
| 1196 DEFINE_TRACE(InputMethodController) { | 1201 DEFINE_TRACE(InputMethodController) { |
| 1197 visitor->trace(m_frame); | 1202 visitor->trace(m_frame); |
| 1198 visitor->trace(m_compositionRange); | 1203 visitor->trace(m_compositionRange); |
| 1199 SynchronousMutationObserver::trace(visitor); | 1204 SynchronousMutationObserver::trace(visitor); |
| 1200 } | 1205 } |
| 1201 | 1206 |
| 1202 } // namespace blink | 1207 } // namespace blink |
| OLD | NEW |