Changeset 72622 in webkit


Ignore:
Timestamp:
Nov 23, 2010 12:50:02 PM (13 years ago)
Author:
jparent@chromium.org
Message:

2010-11-23 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r72618.
http://trac.webkit.org/changeset/72618
https://bugs.webkit.org/show_bug.cgi?id=49987

"Newly added test is failing on Chromium-linux, patch author
said to rollout" (Requested by jparent on #webkit).

  • editing/EditingBehavior.h:
  • page/EventHandler.cpp: (WebCore::EventHandler::sendContextMenuEvent):

2010-11-23 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r72618.
http://trac.webkit.org/changeset/72618
https://bugs.webkit.org/show_bug.cgi?id=49987

"Newly added test is failing on Chromium-linux, patch author
said to rollout" (Requested by jparent on #webkit).

  • editing/selection/context-menu-text-selection-expected.txt: Removed.
  • editing/selection/context-menu-text-selection.html: Removed.
Location:
trunk
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r72619 r72622  
     12010-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
    1132010-11-23  Julie Parent  <jparent@chromium.org>
    214
  • trunk/WebCore/ChangeLog

    r72618 r72622  
     12010-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
    1142010-11-23  Avi Drissman  <avi@google.com>
    215
  • trunk/WebCore/editing/EditingBehavior.h

    r72618 r72622  
    5858    bool shouldAlwaysGrowSelectionWhenExtendingToBoundary() const { return m_type == EditingMacBehavior; }
    5959
    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 
    6360private:
    6461    EditingBehaviorType m_type;
  • trunk/WebCore/page/EventHandler.cpp

    r72618 r72622  
    20082008    MouseEventWithHitTestResults mev = doc->prepareMouseEvent(request, viewportPos, event);
    20092009
    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)
    20122015        // FIXME: In the editable case, word selection sometimes selects content that isn't underneath the mouse.
    20132016        // If the selection is non-editable, we do word selection to make it easier to use the contextual menu items
     
    20172020        selectClosestWordOrLinkFromMouseEvent(mev);
    20182021    }
     2022#endif
    20192023
    20202024    swallowEvent = dispatchMouseEvent(eventNames().contextmenuEvent, mev.targetNode(), true, 0, event, false);
Note: See TracChangeset for help on using the changeset viewer.