Changeset 83814 in webkit
- Timestamp:
- Apr 13, 2011 10:40:09 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83813 r83814 1 2011-04-13 Jon Lee <jonlee@apple.com> 2 3 Reviewed by Maciej Stachowiak. 4 5 REGRESSION(r81880): Paste menu is disabled for many edit fields (yahoo and google search, yahoo mail msg, forms, etc) 6 https://bugs.webkit.org/show_bug.cgi?id=58284 7 <rdar://problem/9246149> 8 9 * WebCore.exp.in: Exporting EditingBehavior.h for use in WebKit2 10 * editing/EditingBehavior.h: 11 (WebCore::EditingBehavior::shouldClearSelectionWhenLosingWebPageFocus): moving the platform-specific code out of an #ifdef and into this class for run-time instead of compile-time checking 12 1 13 2011-04-13 Yael Aharon <yael.aharon@nokia.com> 2 14 -
trunk/Source/WebCore/WebCore.exp.in
r83808 r83814 1220 1220 __ZNK7WebCore6Chrome12createWindowEPNS_5FrameERKNS_16FrameLoadRequestERKNS_14WindowFeaturesERKNS_16NavigationActionE 1221 1221 __ZNK7WebCore6Cursor14platformCursorEv 1222 __ZNK7WebCore6Editor8behaviorEv 1222 1223 __ZNK7WebCore6Editor12selectedTextEv 1223 1224 __ZNK7WebCore6Editor13canEditRichlyEv -
trunk/Source/WebCore/editing/EditingBehavior.h
r72678 r83814 60 60 // On Mac, when processing a contextual click, the object being clicked upon should be selected. 61 61 bool shouldSelectOnContextualMenuClick() const { return m_type == EditingMacBehavior; } 62 63 // On Mac, when the web view loses focus, any active selection clears. On Windows, the selection 64 // should remain highlighted, just in an inactive state. 65 bool shouldClearSelectionWhenLosingWebPageFocus() const { return m_type == EditingMacBehavior; } 62 66 63 67 private: -
trunk/Source/WebKit2/ChangeLog
r83812 r83814 1 2011-04-13 Jon Lee <jonlee@apple.com> 2 3 Reviewed by Maciej Stachowiak. 4 5 REGRESSION(r81880): Paste menu is disabled for many edit fields (yahoo and google search, yahoo mail msg, forms, etc) 6 https://bugs.webkit.org/show_bug.cgi?id=58284 7 <rdar://problem/9246149> 8 9 * WebProcess/WebPage/WebPage.cpp: 10 (WebKit::WebPage::setFocused): Check for whether we are not supposed to be focused AND whether our platform behavior dictates to clear out the selection 11 1 12 2011-04-13 Dan Bernstein <mitz@apple.com> 2 13 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r83766 r83814 80 80 #include <WebCore/DragController.h> 81 81 #include <WebCore/DragData.h> 82 #include <WebCore/EditingBehavior.h> 82 83 #include <WebCore/EventHandler.h> 83 84 #include <WebCore/FocusController.h> … … 1146 1147 void WebPage::setFocused(bool isFocused) 1147 1148 { 1148 if (!isFocused )1149 if (!isFocused && m_page->focusController()->focusedOrMainFrame()->editor()->behavior().shouldClearSelectionWhenLosingWebPageFocus()) 1149 1150 m_page->focusController()->focusedOrMainFrame()->selection()->clear(); 1151 1150 1152 m_page->focusController()->setFocused(isFocused); 1151 1153 }
Note: See TracChangeset
for help on using the changeset viewer.