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

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

Issue 2140733003: [Editing][CodeHealth] Make Node::rootEditableElement static (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 0efee04706fdaf33e9648b777816017dd47feb93..0bf84818a29f1e8664e767cf0fb1a97ca0e5b6e3 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
@@ -47,7 +47,7 @@ SpellCheckRequest::SpellCheckRequest(
: m_requester(nullptr)
, m_checkingRange(checkingRange)
, m_paragraphRange(paragraphRange)
- , m_rootEditableElement(m_checkingRange->startContainer()->rootEditableElement())
+ , m_rootEditableElement(blink::rootEditableElement(*m_checkingRange->startContainer()))
, m_requestData(unrequestedTextCheckingSequence, text, mask, processType, documentMarkersInRange, documentMarkerOffsets)
, m_requestNumber(requestNumber)
{
@@ -84,7 +84,7 @@ SpellCheckRequest* SpellCheckRequest::create(TextCheckingTypeMask textCheckingOp
{
if (checkingRange.isNull())
return nullptr;
- if (!checkingRange.startPosition().computeContainerNode()->rootEditableElement())
+ if (!blink::rootEditableElement(*checkingRange.startPosition().computeContainerNode()))
return nullptr;
String text = plainText(checkingRange, TextIteratorEmitsObjectReplacementCharacter);

Powered by Google App Engine
This is Rietveld 408576698