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

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

Issue 2637953002: Move CaretBase::shouldRepaintCaret() to FrameCaret.cpp (Closed)
Patch Set: 2017-01-17T12:43:36 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
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 16e0f02e273c4d39b5eddce576d7cc7eafd7b228..144b86c1e91de39844b5f1604b3a3ced4d0c2c3f 100644
--- a/third_party/WebKit/Source/core/editing/CaretBase.cpp
+++ b/third_party/WebKit/Source/core/editing/CaretBase.cpp
@@ -146,15 +146,6 @@ void CaretBase::invalidateLocalCaretRect(Node* node, const LayoutRect& rect) {
node->layoutObject()->invalidatePaintRectangle(inflatedRect, this);
}
-bool CaretBase::shouldRepaintCaret(Node& node) {
- // If PositionAnchorType::BeforeAnchor or PositionAnchorType::AfterAnchor,
- // carets need to be repainted not only when the node is contentEditable but
- // also when its parentNode() is contentEditable.
- node.document().updateStyleAndLayoutTree();
- return hasEditableStyle(node) ||
- (node.parentNode() && hasEditableStyle(*node.parentNode()));
-}
-
void CaretBase::invalidateCaretRect(Node* node,
const LayoutRect& caretLocalRect) {
node->document().updateStyleAndLayoutTree();
« no previous file with comments | « third_party/WebKit/Source/core/editing/CaretBase.h ('k') | third_party/WebKit/Source/core/editing/FrameCaret.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698