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

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

Issue 2653523003: Make DOMSelection cache Range (Closed)
Patch Set: nit 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
Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index 910761ef47f3c5e967e9854973470d372b4ae3ad..10a702562f5f21f4b2e96cf80b2d4582bd1f1942 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -1428,6 +1428,18 @@ bool FrameSelection::isCaretBlinkingSuspended() const {
return m_frameCaret->isCaretBlinkingSuspended();
}
+void FrameSelection::cacheRangeOfDocument(Range* range) {
+ m_selectionEditor->cacheRangeOfDocument(range);
+}
+
+Range* FrameSelection::documentCachedRange() const {
+ return m_selectionEditor->documentCachedRange();
+}
+
+void FrameSelection::clearDocumentCachedRange() {
+ m_selectionEditor->clearDocumentCachedRange();
+}
+
} // namespace blink
#ifndef NDEBUG
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.h ('k') | third_party/WebKit/Source/core/editing/SelectionEditor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698