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

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

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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/VisibleSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
index 40e5b828ab85cf7a908062e4a4bb02cb823173c4..de26047c66771bdc733d1fc0bcf8e91d9a3aafb5 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -827,7 +827,7 @@ void VisibleSelectionTemplate<Strategy>::didChange()
template <typename Strategy>
static bool isValidPosition(const PositionTemplate<Strategy>& position)
{
- if (!position.inDocument())
+ if (!position.inShadowIncludingDocument())
return false;
if (!position.isOffsetInAnchor())

Powered by Google App Engine
This is Rietveld 408576698