Changeset 208255 in webkit
- Timestamp:
- Nov 1, 2016 3:58:49 PM (8 years ago)
- Location:
- branches/safari-602-branch/Source
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-602-branch/Source/WebCore/ChangeLog
r208245 r208255 1 2016-11-01 Matthew Hanson <matthew_hanson@apple.com> 2 3 Rollout r208173. rdar://problem/28962886 4 1 5 2016-11-01 Matthew Hanson <matthew_hanson@apple.com> 2 6 -
branches/safari-602-branch/Source/WebCore/editing/AlternativeTextController.cpp
r208173 r208255 1 1 /* 2 * Copyright (C) 2006 -2008, 2016Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 4 4 * … … 318 318 if (AlternativeTextClient* client = alternativeTextClient()) 319 319 client->recordAutocorrectionResponse(AutocorrectionReverted, corrected, correction); 320 321 Ref<Frame> protector(m_frame);322 320 m_frame.document()->updateLayout(); 323 321 m_frame.selection().setSelection(selectionOfCorrected, FrameSelection::defaultSetSelectionOptions() | FrameSelection::SpellCorrectionTriggered); -
branches/safari-602-branch/Source/WebCore/editing/Editor.cpp
r208173 r208255 1 1 /* 2 * Copyright (C) 2006 -2008, 2011, 2013-2016Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2007, 2008, 2011, 2013-2015 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 4 4 * … … 1791 1791 void Editor::setComposition(const String& text, const Vector<CompositionUnderline>& underlines, unsigned selectionStart, unsigned selectionEnd) 1792 1792 { 1793 Ref<Frame> protection(m_frame);1794 1795 1793 UserTypingGestureIndicator typingGestureIndicator(m_frame); 1796 1794 … … 1926 1924 void Editor::advanceToNextMisspelling(bool startBeforeSelection) 1927 1925 { 1928 Ref<Frame> protection(m_frame);1929 1930 1926 // The basic approach is to search in two phases - from the selection end to the end of the doc, and 1931 1927 // then we wrap and search from the doc start to (approximately) where we started. … … 2246 2242 void Editor::markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, const VisibleSelection& selectionAfterTyping, bool doReplacement) 2247 2243 { 2248 Ref<Frame> protection(m_frame);2249 2250 2244 #if PLATFORM(IOS) 2251 2245 UNUSED_PARAM(selectionAfterTyping); … … 2498 2492 void Editor::markAndReplaceFor(PassRefPtr<SpellCheckRequest> request, const Vector<TextCheckingResult>& results) 2499 2493 { 2500 Ref<Frame> protection(m_frame);2501 2494 ASSERT(request); 2502 2495 … … 2957 2950 void Editor::changeSelectionAfterCommand(const VisibleSelection& newSelection, FrameSelection::SetSelectionOptions options) 2958 2951 { 2959 Ref<Frame> protection(m_frame);2960 2961 2952 // If the new selection is orphaned, then don't update the selection. 2962 2953 if (newSelection.start().isOrphan() || newSelection.end().isOrphan()) … … 3149 3140 bool Editor::findString(const String& target, FindOptions options) 3150 3141 { 3151 Ref<Frame> protection(m_frame);3152 3153 3142 VisibleSelection selection = m_frame.selection().selection(); 3154 3143 -
branches/safari-602-branch/Source/WebCore/editing/EditorCommand.cpp
r208173 r208255 1 1 /* 2 * Copyright (C) 2006 -2008, 2014, 2016Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2007, 2008, 2014 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 4 4 * Copyright (C) 2009 Igalia S.L. … … 1062 1062 static bool executeSwapWithMark(Frame& frame, Event*, EditorCommandSource, const String&) 1063 1063 { 1064 Ref<Frame> protector(frame);1065 1064 const VisibleSelection& mark = frame.editor().mark(); 1066 1065 const VisibleSelection& selection = frame.selection().selection(); -
branches/safari-602-branch/Source/WebCore/editing/TypingCommand.cpp
r208173 r208255 1 1 /* 2 * Copyright (C) 2005 -2008, 2016Apple Inc. All rights reserved.2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 476 476 { 477 477 Frame& frame = this->frame(); 478 Ref<Frame> protector(frame);479 478 480 479 frame.editor().updateMarkersForWordsAffectedByEditing(false); … … 590 589 { 591 590 Frame& frame = this->frame(); 592 Ref<Frame> protector(frame);593 591 594 592 frame.editor().updateMarkersForWordsAffectedByEditing(false); -
branches/safari-602-branch/Source/WebCore/editing/mac/EditorMac.mm
r208173 r208255 261 261 return; 262 262 263 Ref<Frame> protector(m_frame);264 263 RefPtr<Range> range = Range::create(node->document(), Position(node, Position::PositionIsBeforeAnchor), Position(node, Position::PositionIsAfterAnchor)); 265 264 m_frame.selection().setSelection(VisibleSelection(*range), FrameSelection::DoNotSetFocus); -
branches/safari-602-branch/Source/WebCore/page/ContextMenuController.cpp
r208173 r208255 1 1 /* 2 * Copyright (C) 2006 -2007, 2016Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2010 Igalia S.L 4 4 * … … 224 224 return; 225 225 226 Ref<Frame> protector(*frame);227 228 226 switch (action) { 229 227 case ContextMenuItemTagOpenLinkInNewWindow: -
branches/safari-602-branch/Source/WebCore/page/DOMSelection.cpp
r208173 r208255 1 1 /* 2 * Copyright (C) 2007, 2009 , 2016Apple Inc. All rights reserved.2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2012 Google Inc. All rights reserved. 4 4 * … … 202 202 203 203 // FIXME: Eliminate legacy editing positions 204 Ref<Frame> protector(*m_frame);205 204 m_frame->selection().moveTo(createLegacyEditingPosition(node, offset), DOWNSTREAM); 206 205 } … … 218 217 } 219 218 220 Ref<Frame> protector(*m_frame);221 219 m_frame->selection().moveTo(selection.end(), DOWNSTREAM); 222 220 } … … 234 232 } 235 233 236 Ref<Frame> protector(*m_frame);237 234 m_frame->selection().moveTo(selection.start(), DOWNSTREAM); 238 235 } … … 259 256 260 257 // FIXME: Eliminate legacy editing positions 261 Ref<Frame> protector(*m_frame);262 258 m_frame->selection().moveTo(createLegacyEditingPosition(baseNode, baseOffset), createLegacyEditingPosition(extentNode, extentOffset), DOWNSTREAM); 263 259 } … … 276 272 277 273 // FIXME: Eliminate legacy editing positions 278 Ref<Frame> protector(*m_frame);279 274 m_frame->selection().moveTo(createLegacyEditingPosition(node, offset), DOWNSTREAM); 280 275 } … … 327 322 return; 328 323 329 Ref<Frame> protector(*m_frame);330 324 m_frame->selection().modify(alter, direction, granularity); 331 325 } … … 345 339 346 340 // FIXME: Eliminate legacy editing positions 347 Ref<Frame> protector(*m_frame);348 341 m_frame->selection().setExtent(createLegacyEditingPosition(&node, offset), DOWNSTREAM); 349 342 } … … 384 377 if (!r) 385 378 return; 386 387 Ref<Frame> protector(*m_frame);388 379 389 380 FrameSelection& selection = m_frame->selection(); … … 438 429 return; 439 430 440 Ref<Frame> protector(*m_frame);441 431 selectedRange->deleteContents(ASSERT_NO_EXCEPTION); 442 432 -
branches/safari-602-branch/Source/WebCore/page/DragController.cpp
r208173 r208255 1 1 /* 2 * Copyright (C) 2007, 2009 -2010, 2013, 2015-2016Apple Inc. All rights reserved.2 * Copyright (C) 2007, 2009, 2010, 2013, 2015 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 433 433 static bool setSelectionToDragCaret(Frame* frame, VisibleSelection& dragCaret, RefPtr<Range>& range, const IntPoint& point) 434 434 { 435 Ref<Frame> protector(*frame);436 435 frame->selection().setSelection(dragCaret); 437 436 if (frame->selection().selection().isNone()) { … … 754 753 return false; 755 754 756 Ref<Frame> protector(src);757 755 HitTestResult hitTestResult = src.eventHandler().hitTestResultAtPoint(dragOrigin, HitTestRequest::ReadOnly | HitTestRequest::Active); 758 756 -
branches/safari-602-branch/Source/WebCore/page/Frame.cpp
r208173 r208255 604 604 } 605 605 606 Ref<Frame> protectedThis(*this);607 608 606 if (action == PerformOverflowScroll && (deltaX || deltaY)) { 609 607 layer->scrollToOffset(layer->scrollOffset() + IntSize(deltaX, deltaY)); -
branches/safari-602-branch/Source/WebCore/page/TextIndicator.cpp
r208173 r208255 1 1 /* 2 * Copyright (C) 2010, 2015 -2016Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2015 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 70 70 return nullptr; 71 71 72 Ref<Frame> protector(*frame);73 74 72 #if PLATFORM(IOS) 75 73 frame->editor().setIgnoreCompositionSelectionChange(true); -
branches/safari-602-branch/Source/WebKit2/ChangeLog
r208173 r208255 1 2016-11-01 Matthew Hanson <matthew_hanson@apple.com> 2 3 Rollout r208173. rdar://problem/28962886 4 1 5 2016-10-31 Matthew Hanson <matthew_hanson@apple.com> 2 6 -
branches/safari-602-branch/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp
r208173 r208255 1 1 /* 2 * Copyright (C) 2010, 2015 -2016Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2015 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 114 114 return nullptr; 115 115 116 Ref<Frame> protector(*frame);117 118 116 VisibleSelection oldSelection = frame->selection().selection(); 119 117 frame->selection().setSelection(VisibleSelection(*m_range)); -
branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r208173 r208255 4583 4583 Frame& frame = m_page->focusController().focusedOrMainFrame(); 4584 4584 4585 Ref<Frame> protector(frame);4586 4587 4585 if (replacementEditingRange.location != notFound) { 4588 4586 RefPtr<Range> replacementRange = rangeFromEditingRange(frame, replacementEditingRange, static_cast<EditingRangeIsRelativeTo>(editingRangeIsRelativeTo)); … … 4748 4746 return; 4749 4747 } 4750 4751 Ref<Frame> protector(*targetFrame);4752 4748 4753 4749 if (replacementLength > 0) { -
branches/safari-602-branch/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm
r208173 r208255 1 1 /* 2 * Copyright (C) 2010 -2012, 2015-2016Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2011, 2012, 2015 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 328 328 Frame& frame = m_page->focusController().focusedOrMainFrame(); 329 329 330 Ref<Frame> protector(frame);331 332 330 if (replacementEditingRange.location != notFound) { 333 331 RefPtr<Range> replacementRange = rangeFromEditingRange(frame, replacementEditingRange);
Note: See TracChangeset
for help on using the changeset viewer.