| 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();
|
|
|