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

Unified Diff: third_party/WebKit/Source/core/editing/DOMSelection.h

Issue 2653523003: Make DOMSelection cache Range (Closed)
Patch Set: Clear cached Range considering Shadow 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/DOMSelection.h
diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.h b/third_party/WebKit/Source/core/editing/DOMSelection.h
index b1a7dac6852f785659929563034e230bb7cd12b9..6b4eb197b7ece6c250763f5c9bfc2f0e0e8d775f 100644
--- a/third_party/WebKit/Source/core/editing/DOMSelection.h
+++ b/third_party/WebKit/Source/core/editing/DOMSelection.h
@@ -101,6 +101,8 @@ class CORE_EXPORT DOMSelection final : public GarbageCollected<DOMSelection>,
// Microsoft Selection Object API
void empty();
+ void markRangeDirty();
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -118,7 +120,10 @@ class CORE_EXPORT DOMSelection final : public GarbageCollected<DOMSelection>,
void addConsoleError(const String& message);
+ Range* createRangeFromSelectionEditor();
+
Member<const TreeScope> m_treeScope;
+ Member<Range> m_Range;
tkent 2017/01/25 07:59:12 m_Range -> m_range
yoichio 2017/01/27 08:33:04 Done.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698