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

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

Issue 2149243003: [Editing][DOM][CodeHealth] Remove unused enum Node::UserSelectAllTreatment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/CaretBase.cpp
diff --git a/third_party/WebKit/Source/core/editing/CaretBase.cpp b/third_party/WebKit/Source/core/editing/CaretBase.cpp
index 8cbc6be27bc5cf73e5e2888f1d3f59ca49c1635f..5759cdb81b5fcdeaca757a1e5f2dba07f2960402 100644
--- a/third_party/WebKit/Source/core/editing/CaretBase.cpp
+++ b/third_party/WebKit/Source/core/editing/CaretBase.cpp
@@ -185,7 +185,7 @@ void CaretBase::invalidateCaretRect(Node* node, bool caretRectChanged)
return;
if (LayoutViewItem view = node->document().layoutViewItem()) {
- if (node->isContentEditable(Node::UserSelectAllIsAlwaysNonEditable) || shouldRepaintCaret(view))
+ if (node->isContentEditable() || shouldRepaintCaret(view))
invalidateLocalCaretRect(node, localCaretRectWithoutUpdate());
}
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698