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

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

Issue 800633004: ShadowRoot's getSelection().getRangeAt(0) returns an incorrect Range object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: Source/core/editing/DOMSelection.h
diff --git a/Source/core/editing/DOMSelection.h b/Source/core/editing/DOMSelection.h
index 0a02168ae30cd71c1a9ecf2dd44956c1a5feda14..7912bc8b00edbfd6da339beb06ef81ab8e7b9783 100644
--- a/Source/core/editing/DOMSelection.h
+++ b/Source/core/editing/DOMSelection.h
@@ -103,7 +103,9 @@ private:
// Convenience method for accessors, does not check m_frame present.
const VisibleSelection& visibleSelection() const;
+ bool isInShadowTree() const;
+ Position shadowAdjustedPosition(const Position&) const;
Node* shadowAdjustedNode(const Position&) const;
int shadowAdjustedOffset(const Position&) const;

Powered by Google App Engine
This is Rietveld 408576698