Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
index efaf58b75a894bfe29bbf1b824b9e742947ba075..d8d8d6ccf1d3feb8f72f37ad727916e8bf51fe80 100644 |
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
@@ -92,17 +92,15 @@ static inline bool shouldAlwaysUseDirectionalSelection(LocalFrame* frame) { |
return frame->editor().behavior().shouldConsiderSelectionAsDirectional(); |
} |
-FrameSelection::FrameSelection(LocalFrame* frame) |
+FrameSelection::FrameSelection(LocalFrame& frame) |
: m_frame(frame), |
m_pendingSelection(PendingSelection::create(*this)), |
m_selectionEditor(SelectionEditor::create(frame)), |
m_granularity(CharacterGranularity), |
m_xPosForVerticalArrowNavigation(NoXPosForVerticalArrowNavigation()), |
- m_focused(frame->page() && |
- frame->page()->focusController().focusedFrame() == frame), |
- m_frameCaret(new FrameCaret(frame, *m_selectionEditor)) { |
- DCHECK(frame); |
-} |
+ m_focused(frame.page() && |
+ frame.page()->focusController().focusedFrame() == frame), |
+ m_frameCaret(new FrameCaret(frame, *m_selectionEditor)) {} |
FrameSelection::~FrameSelection() {} |