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

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, 9 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 39b87f15112e38dbde419fdea09c11198856ef0c..2e781b03a1aff3e4b75e68870b107a1ac7c85071 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -292,7 +292,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
@@ -342,7 +342,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);
@@ -840,7 +840,7 @@ void FrameSelection::selectAll()
}
}
- RefPtrWillBeRawPtr<Node> root = nullptr;
+ RawPtr<Node> root = nullptr;
Node* selectStartTarget = nullptr;
if (isContentEditable()) {
root = highestEditableRoot(selection().start());
@@ -887,7 +887,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();
}
@@ -922,7 +922,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
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.h ('k') | third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698