Changeset 72622 in webkit
- Timestamp:
- Nov 23, 2010 12:50:02 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r72619 r72622 1 2010-11-23 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r72618. 4 http://trac.webkit.org/changeset/72618 5 https://bugs.webkit.org/show_bug.cgi?id=49987 6 7 "Newly added test is failing on Chromium-linux, patch author 8 said to rollout" (Requested by jparent on #webkit). 9 10 * editing/selection/context-menu-text-selection-expected.txt: Removed. 11 * editing/selection/context-menu-text-selection.html: Removed. 12 1 13 2010-11-23 Julie Parent <jparent@chromium.org> 2 14 -
trunk/WebCore/ChangeLog
r72618 r72622 1 2010-11-23 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r72618. 4 http://trac.webkit.org/changeset/72618 5 https://bugs.webkit.org/show_bug.cgi?id=49987 6 7 "Newly added test is failing on Chromium-linux, patch author 8 said to rollout" (Requested by jparent on #webkit). 9 10 * editing/EditingBehavior.h: 11 * page/EventHandler.cpp: 12 (WebCore::EventHandler::sendContextMenuEvent): 13 1 14 2010-11-23 Avi Drissman <avi@google.com> 2 15 -
trunk/WebCore/editing/EditingBehavior.h
r72618 r72622 58 58 bool shouldAlwaysGrowSelectionWhenExtendingToBoundary() const { return m_type == EditingMacBehavior; } 59 59 60 // On Mac, when processing a contextual click, the object being clicked upon should be selected.61 bool shouldSelectOnContextualMenuClick() const { return m_type == EditingMacBehavior; }62 63 60 private: 64 61 EditingBehaviorType m_type; -
trunk/WebCore/page/EventHandler.cpp
r72618 r72622 2008 2008 MouseEventWithHitTestResults mev = doc->prepareMouseEvent(request, viewportPos, event); 2009 2009 2010 if (m_frame->editor()->behavior().shouldSelectOnContextualMenuClick() 2011 && !m_frame->selection()->contains(viewportPos) 2010 // Context menu events shouldn't select text in GTK+ applications or in Chromium. 2011 // FIXME: This should probably be configurable by embedders. Consider making it a WebPreferences setting. 2012 // See: https://bugs.webkit.org/show_bug.cgi?id=15279 2013 #if !PLATFORM(GTK) && !PLATFORM(CHROMIUM) 2014 if (!m_frame->selection()->contains(viewportPos) 2012 2015 // FIXME: In the editable case, word selection sometimes selects content that isn't underneath the mouse. 2013 2016 // If the selection is non-editable, we do word selection to make it easier to use the contextual menu items … … 2017 2020 selectClosestWordOrLinkFromMouseEvent(mev); 2018 2021 } 2022 #endif 2019 2023 2020 2024 swallowEvent = dispatchMouseEvent(eventNames().contextmenuEvent, mev.targetNode(), true, 0, event, false);
Note: See TracChangeset
for help on using the changeset viewer.