| Index: third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp b/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp
|
| index cb1f6b27d450fd1257f15c8c0a946b89b4d54448..efe03c01a59b93b3c173038b1464730cab3ae16f 100644
|
| --- a/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp
|
| @@ -115,6 +115,23 @@ LayoutRect CaretDisplayItemClient::computeCaretRect(
|
| caretLocalRectWithWritingMode);
|
| }
|
|
|
| +void CaretDisplayItemClient::clearPreviousVisualRect(const LayoutBlock& block) {
|
| + if (block == m_layoutBlock) {
|
| + m_visualRect = LayoutRect();
|
| + m_localRect = LayoutRect();
|
| + }
|
| + if (block == m_previousLayoutBlock)
|
| + m_visualRectInPreviousLayoutBlock = LayoutRect();
|
| +}
|
| +
|
| +void CaretDisplayItemClient::layoutBlockWillBeDestroyed(
|
| + const LayoutBlock& block) {
|
| + if (block == m_layoutBlock)
|
| + m_layoutBlock = nullptr;
|
| + if (block == m_previousLayoutBlock)
|
| + m_previousLayoutBlock = nullptr;
|
| +}
|
| +
|
| void CaretDisplayItemClient::updateStyleAndLayoutIfNeeded(
|
| const PositionWithAffinity& caretPosition) {
|
| // This method may be called multiple times (e.g. in partial lifecycle
|
|
|