Changeset 232151 in webkit
- Timestamp:
- May 24, 2018, 2:41:17 AM (8 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/gtk/InputMethodFilter.cpp (modified) (2 diffs)
-
UIProcess/gtk/InputMethodFilter.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r232150 r232151 1 2018-05-24 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Unreviewed. Fix GTK+ input method unit tests after r232049. 4 5 Unit tests don't use a WebPageProxy. 6 7 * UIProcess/gtk/InputMethodFilter.cpp: 8 (WebKit::InputMethodFilter::isViewFocused const): 9 (WebKit::InputMethodFilter::setEnabled): 10 * UIProcess/gtk/InputMethodFilter.h: 11 1 12 2018-05-24 Carlos Garcia Campos <cgarcia@igalia.com> 2 13 -
trunk/Source/WebKit/UIProcess/gtk/InputMethodFilter.cpp
r232049 r232151 82 82 } 83 83 84 bool InputMethodFilter::isViewFocused() const 85 { 86 #if ENABLE(API_TESTS) 87 ASSERT(m_page || m_testingMode); 88 if (m_testingMode) 89 return true; 90 #else 91 ASSERT(m_page); 92 #endif 93 return m_page->isViewFocused(); 94 } 95 84 96 void InputMethodFilter::setEnabled(bool enabled) 85 97 { 86 ASSERT(m_page); 98 #if ENABLE(API_TESTS) 99 ASSERT(m_page || m_testingMode); 100 #else 101 ASSERT(m_page); 102 #endif 87 103 88 104 // Notify focus out before changing the m_enabled. … … 90 106 notifyFocusedOut(); 91 107 m_enabled = enabled; 92 if (enabled && m_page->isViewFocused())108 if (enabled && isViewFocused()) 93 109 notifyFocusedIn(); 94 110 } -
trunk/Source/WebKit/UIProcess/gtk/InputMethodFilter.h
r206985 r232151 94 94 void cancelContextComposition(); 95 95 96 bool isViewFocused() const; 97 96 98 #if ENABLE(API_TESTS) 97 99 void logHandleKeyboardEventForTesting(GdkEventKey*, const String&, EventFakedForComposition);
Note:
See TracChangeset
for help on using the changeset viewer.