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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 5 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/spellcheck/SpellCheckRequester.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
index 0bf84818a29f1e8664e767cf0fb1a97ca0e5b6e3..57e4efe498c3a91415a268638598be5ad317d14a 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
@@ -52,9 +52,9 @@ SpellCheckRequest::SpellCheckRequest(
, m_requestNumber(requestNumber)
{
DCHECK(m_checkingRange);
- DCHECK(m_checkingRange->inShadowIncludingDocument());
+ DCHECK(m_checkingRange->isConnected());
DCHECK(m_paragraphRange);
- DCHECK(m_paragraphRange->inShadowIncludingDocument());
+ DCHECK(m_paragraphRange->isConnected());
DCHECK(m_rootEditableElement);
}
@@ -117,7 +117,7 @@ const TextCheckingRequestData& SpellCheckRequest::data() const
bool SpellCheckRequest::isValid() const
{
- return m_checkingRange->inShadowIncludingDocument() && m_paragraphRange->inShadowIncludingDocument() && m_rootEditableElement->inShadowIncludingDocument();
+ return m_checkingRange->isConnected() && m_paragraphRange->isConnected() && m_rootEditableElement->isConnected();
}
void SpellCheckRequest::didSucceed(const Vector<TextCheckingResult>& results)

Powered by Google App Engine
This is Rietveld 408576698