Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelection.cpp

Issue 2612713002: Move core/editing timer to frame-specific task runners. (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {}
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.h ('k') | third_party/WebKit/Source/core/editing/SelectionEditor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698