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

Side by Side Diff: third_party/WebKit/Source/core/editing/SelectionEditor.cpp

Issue 2612713002: Move core/editing timer to frame-specific task runners. (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #include "core/editing/SelectionEditor.h" 26 #include "core/editing/SelectionEditor.h"
27 27
28 #include "core/editing/EditingUtilities.h" 28 #include "core/editing/EditingUtilities.h"
29 #include "core/editing/Editor.h" 29 #include "core/editing/Editor.h"
30 #include "core/editing/SelectionAdjuster.h" 30 #include "core/editing/SelectionAdjuster.h"
31 #include "core/frame/LocalFrame.h" 31 #include "core/frame/LocalFrame.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 SelectionEditor::SelectionEditor(LocalFrame* frame) 35 SelectionEditor::SelectionEditor(LocalFrame& frame)
36 : m_frame(frame), m_observingVisibleSelection(false) { 36 : m_frame(frame), m_observingVisibleSelection(false) {
37 DCHECK(m_frame);
38 clearVisibleSelection(); 37 clearVisibleSelection();
39 } 38 }
40 39
41 SelectionEditor::~SelectionEditor() {} 40 SelectionEditor::~SelectionEditor() {}
42 41
43 void SelectionEditor::clearVisibleSelection() { 42 void SelectionEditor::clearVisibleSelection() {
44 m_selection = VisibleSelection(); 43 m_selection = VisibleSelection();
45 m_selectionInFlatTree = VisibleSelectionInFlatTree(); 44 m_selectionInFlatTree = VisibleSelectionInFlatTree();
46 if (!shouldAlwaysUseDirectionalSelection()) 45 if (!shouldAlwaysUseDirectionalSelection())
47 return; 46 return;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 166
168 DEFINE_TRACE(SelectionEditor) { 167 DEFINE_TRACE(SelectionEditor) {
169 visitor->trace(m_document); 168 visitor->trace(m_document);
170 visitor->trace(m_frame); 169 visitor->trace(m_frame);
171 visitor->trace(m_selection); 170 visitor->trace(m_selection);
172 visitor->trace(m_selectionInFlatTree); 171 visitor->trace(m_selectionInFlatTree);
173 visitor->trace(m_logicalRange); 172 visitor->trace(m_logicalRange);
174 } 173 }
175 174
176 } // namespace blink 175 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698