Changeset 93531 in webkit
- Timestamp:
- Aug 22, 2011 1:05:51 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r93528 r93531 1 2011-08-22 Wyatt Carss <wcarss@chromium.org> 2 3 FrameSelection::setNonDirectionalSelectionIfNeeded should not have a FrameSelection passed to it 4 https://bugs.webkit.org/show_bug.cgi?id=66636 5 6 Reviewed by Darin Adler. 7 8 setNonDirectionalSelection was moved into FrameSelection in r93134 for 9 bug 60529, and still took a FrameSelection as an argument, which has been removed. 10 11 * editing/FrameSelection.cpp: 12 (WebCore::FrameSelection::setNonDirectionalSelectionIfNeeded): 13 1 14 2011-08-22 Tony Chang <tony@chromium.org> 2 15 … … 262 275 all elements should be available on DOMWindow. 263 276 264 277 * bindings/generic/RuntimeEnabledFeatures.cpp: 265 278 (WebCore::RuntimeEnabledFeatures::htmlSourceElementEnabled): 266 279 * bindings/generic/RuntimeEnabledFeatures.h: -
trunk/Source/WebCore/editing/FrameSelection.cpp
r93221 r93531 164 164 } 165 165 166 void FrameSelection::setNonDirectionalSelectionIfNeeded(FrameSelection* selection, const VisibleSelection& passedNewSelection, TextGranularity granularity) 167 { 168 ASSERT(selection); 166 void FrameSelection::setNonDirectionalSelectionIfNeeded(const VisibleSelection& passedNewSelection, TextGranularity granularity) 167 { 169 168 VisibleSelection newSelection = passedNewSelection; 170 169 … … 172 171 newSelection.setIsDirectional(true); 173 172 174 if ( selection->selection() == newSelection || !selection->shouldChangeSelection(newSelection))173 if (m_selection == newSelection || !shouldChangeSelection(newSelection)) 175 174 return; 176 175 -
trunk/Source/WebCore/editing/FrameSelection.h
r93221 r93531 224 224 bool shouldChangeSelection(const VisibleSelection&) const; 225 225 bool shouldDeleteSelection(const VisibleSelection&) const; 226 void setNonDirectionalSelectionIfNeeded( FrameSelection*,const VisibleSelection&, TextGranularity);226 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranularity); 227 227 void setFocusedNodeIfNeeded(); 228 228 void notifyRendererOfSelectionChange(EUserTriggered); -
trunk/Source/WebCore/page/EventHandler.cpp
r93358 r93531 288 288 } 289 289 290 m_frame->selection()->setNonDirectionalSelectionIfNeeded( m_frame->selection(),newSelection, granularity);290 m_frame->selection()->setNonDirectionalSelectionIfNeeded(newSelection, granularity); 291 291 292 292 return true; … … 691 691 newSelection.expandUsingGranularity(m_frame->selection()->granularity()); 692 692 693 m_frame->selection()->setNonDirectionalSelectionIfNeeded( m_frame->selection(),newSelection, m_frame->selection()->granularity());693 m_frame->selection()->setNonDirectionalSelectionIfNeeded(newSelection, m_frame->selection()->granularity()); 694 694 } 695 695 #endif // ENABLE(DRAG_SUPPORT)
Note: See TracChangeset
for help on using the changeset viewer.