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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.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/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 082e02fb7664de50371dc8651a703f752338c7e8..054dedc9554944ddb0b5c2b0ad508f0104737c78 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)
{
ASSERT(m_checkingRange);
- ASSERT(m_checkingRange->inDocument());
+ ASSERT(m_checkingRange->inShadowIncludingDocument());
ASSERT(m_paragraphRange);
- ASSERT(m_paragraphRange->inDocument());
+ ASSERT(m_paragraphRange->inShadowIncludingDocument());
ASSERT(m_rootEditableElement);
}
@@ -117,7 +117,7 @@ const TextCheckingRequestData& SpellCheckRequest::data() const
bool SpellCheckRequest::isValid() const
{
- return m_checkingRange->inDocument() && m_paragraphRange->inDocument() && m_rootEditableElement->inDocument();
+ return m_checkingRange->inShadowIncludingDocument() && m_paragraphRange->inShadowIncludingDocument() && m_rootEditableElement->inShadowIncludingDocument();
}
void SpellCheckRequest::didSucceed(const Vector<TextCheckingResult>& results)

Powered by Google App Engine
This is Rietveld 408576698