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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index 886beefa91dd9cbea5ec5b3861073acd9d2b3698..dba35ed41618482d148d430de6ef8cd31e60d584 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -290,7 +290,7 @@ void FrameSelection::setSelectionAlgorithm(const VisibleSelectionTemplate<Strate
// TODO(hajimehoshi): validateSelection already checks if the selection
// is valid, thus we don't need this 'if' clause any more.
if (document.frame() && document.frame() != m_frame && document != m_frame->document()) {
- RefPtrWillBeRawPtr<LocalFrame> guard(document.frame());
+ RawPtr<LocalFrame> guard(document.frame());
document.frame()->selection().setSelection(s, options, align, granularity);
// It's possible that during the above set selection, this
// |FrameSelection| has been modified by
@@ -340,7 +340,7 @@ void FrameSelection::setSelectionAlgorithm(const VisibleSelectionTemplate<Strate
// Always clear the x position used for vertical arrow navigation.
// It will be restored by the vertical arrow navigation code if necessary.
m_selectionEditor->resetXPosForVerticalArrowNavigation();
- RefPtrWillBeRawPtr<LocalFrame> protector(m_frame.get());
+ RawPtr<LocalFrame> protector(m_frame.get());
// This may dispatch a synchronous focus-related events.
selectFrameElementInParentIfFullySelected();
notifyLayoutObjectOfSelectionChange(userTriggered);
@@ -837,7 +837,7 @@ void FrameSelection::selectAll()
}
}
- RefPtrWillBeRawPtr<Node> root = nullptr;
+ RawPtr<Node> root = nullptr;
Node* selectStartTarget = nullptr;
if (isContentEditable()) {
root = highestEditableRoot(selection().start());
@@ -879,7 +879,7 @@ bool FrameSelection::setSelectedRange(const EphemeralRange& range, TextAffinity
return m_selectionEditor->setSelectedRange(range, affinity, directional, options);
}
-PassRefPtrWillBeRawPtr<Range> FrameSelection::firstRange() const
+RawPtr<Range> FrameSelection::firstRange() const
{
return m_selectionEditor->firstRange();
}
@@ -914,7 +914,7 @@ void FrameSelection::notifyEventHandlerForSelectionChange()
void FrameSelection::focusedOrActiveStateChanged()
{
bool activeAndFocused = isFocusedAndActive();
- RefPtrWillBeRawPtr<Document> document = m_frame->document();
+ RawPtr<Document> document = m_frame->document();
// Trigger style invalidation from the focused element. Even though
// the focused element hasn't changed, the evaluation of focus pseudo

Powered by Google App Engine
This is Rietveld 408576698