Fix for bug 388659 (Links become undraggable when document contains contenteditable element). r/sr=roc, a=beltzner.
git-svn-id: svn://10.0.0.236/trunk@250449 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1627127c71
commit
c14c51d465
@ -1788,18 +1788,19 @@ nsFrame::HandlePress(nsPresContext* aPresContext,
|
||||
isEditor = isEditor == nsISelectionDisplay::DISPLAY_ALL;
|
||||
|
||||
nsInputEvent* keyEvent = (nsInputEvent*)aEvent;
|
||||
if (!isEditor && !keyEvent->isAlt) {
|
||||
if (!keyEvent->isAlt) {
|
||||
|
||||
for (nsIContent* content = mContent; content;
|
||||
content = content->GetParent()) {
|
||||
if ( nsContentUtils::ContentIsDraggable(content) ) {
|
||||
if (nsContentUtils::ContentIsDraggable(content) &&
|
||||
!content->IsEditable()) {
|
||||
// coordinate stuff is the fix for bug #55921
|
||||
if ((mRect - GetPosition()).Contains(
|
||||
nsLayoutUtils::GetEventCoordinatesRelativeTo(aEvent, this)))
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
} // if browser, not editor
|
||||
}
|
||||
|
||||
// check whether style allows selection
|
||||
// if not, don't tell selection the mouse event even occurred.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user