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

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

Issue 2708533002: Make SelectionEditor::markCacheDirty() not to reset cached value if it has been cleared (Closed)
Patch Set: 2017-02-20T12:38:08 Created 3 years, 10 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 | « no previous file | 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/SelectionEditor.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
index e34bba5da6c36786ce4d1ba3d03e039e62164cfa..3cbe4ecee2d19bcee6490b58cb16a34655a86a29 100644
--- a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
@@ -123,6 +123,8 @@ bool SelectionEditor::isContentRichlyEditable() const {
}
void SelectionEditor::markCacheDirty() {
+ if (m_cacheIsDirty)
+ return;
m_cachedVisibleSelectionInFlatTree = VisibleSelectionInFlatTree();
m_cachedVisibleSelectionInDOMTree = VisibleSelection();
m_cacheIsDirty = true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698