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

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

Issue 2643033005: Make FrameCaret to utilize SynchronousMutationObserver (Closed)
Patch Set: 2017-01-20T14:30:09 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameCaret.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0238e0b185480ab4010b2ce338dc56d0336b45ea..464ca351009703fc1146a4da0ce061f790eb36b5 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -403,8 +403,6 @@ void FrameSelection::nodeWillBeRemoved(Node& node) {
removingNodeRemovesPosition(node, selection().extent()),
removingNodeRemovesPosition(node, selection().start()),
removingNodeRemovesPosition(node, selection().end()));
-
- m_frameCaret->nodeWillBeRemoved(node);
yoichio 2017/01/20 08:44:00 I'm afraid if there is race condition between Fr
yosin_UTC9 2017/01/20 08:49:14 |FrameCaret::nodeWillBeRemoved()| doesn't access |
}
static SelectionState selectionStateOf(const Node& node) {
@@ -711,6 +709,7 @@ void FrameSelection::documentAttached(Document* document) {
m_document = document;
m_useSecureKeyboardEntryWhenActive = false;
m_selectionEditor->documentAttached(document);
+ m_frameCaret->documentAttached(document);
}
void FrameSelection::documentDetached(const Document& document) {
@@ -724,7 +723,6 @@ void FrameSelection::documentDetached(const Document& document) {
clearTypingStyle();
m_selectionEditor->documentDetached(document);
- m_frameCaret->documentDetached();
}
LayoutBlock* FrameSelection::caretLayoutObject() const {
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameCaret.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698