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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index 688de4b93bb08a3b1857b97ebd2ecf59ae09c807..349ff5f7b6e70226f7033198e5fd1a184afbf349 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -211,7 +211,7 @@ void WebFrameWidgetImpl::updateMainFrameLayoutSize()
if (!m_localRoot)
return;
- RawPtr<FrameView> view = m_localRoot->frameView();
+ FrameView* view = m_localRoot->frameView();
if (!view)
return;
@@ -335,7 +335,7 @@ WebInputEventResult WebFrameWidgetImpl::handleInputEvent(const WebInputEvent& in
if (m_mouseCaptureNode && WebInputEvent::isMouseEventType(inputEvent.type)) {
TRACE_EVENT1("input", "captured mouse event", "type", inputEvent.type);
// Save m_mouseCaptureNode since mouseCaptureLost() will clear it.
- RawPtr<Node> node = m_mouseCaptureNode;
+ Node* node = m_mouseCaptureNode;
// Not all platforms call mouseCaptureLost() directly.
if (inputEvent.type == WebInputEvent::MouseUp)
@@ -427,7 +427,7 @@ void WebFrameWidgetImpl::setFocus(bool enable)
page()->focusController().setFocused(enable);
if (enable) {
page()->focusController().setActive(true);
- RawPtr<LocalFrame> focusedFrame = page()->focusController().focusedFrame();
+ LocalFrame* focusedFrame = page()->focusController().focusedFrame();
if (focusedFrame) {
Element* element = focusedFrame->document()->focusedElement();
if (element && focusedFrame->selection().selection().isNone()) {
@@ -772,9 +772,9 @@ WebInputEventResult WebFrameWidgetImpl::handleKeyEvent(const WebKeyboardEvent& e
// event.
m_suppressNextKeypressEvent = false;
- RawPtr<Frame> focusedFrame = focusedCoreFrame();
+ Frame* focusedFrame = focusedCoreFrame();
if (focusedFrame && focusedFrame->isRemoteFrame()) {
- WebRemoteFrameImpl* webFrame = WebRemoteFrameImpl::fromFrame(*toRemoteFrame(focusedFrame.get()));
+ WebRemoteFrameImpl* webFrame = WebRemoteFrameImpl::fromFrame(*toRemoteFrame(focusedFrame));
webFrame->client()->forwardInputEvent(&event);
return WebInputEventResult::HandledSystem;
}
@@ -782,7 +782,7 @@ WebInputEventResult WebFrameWidgetImpl::handleKeyEvent(const WebKeyboardEvent& e
if (!focusedFrame || !focusedFrame->isLocalFrame())
return WebInputEventResult::NotHandled;
- RawPtr<LocalFrame> frame = toLocalFrame(focusedFrame.get());
+ LocalFrame* frame = toLocalFrame(focusedFrame);
PlatformKeyboardEventBuilder evt(event);
« no previous file with comments | « third_party/WebKit/Source/web/WebFrame.cpp ('k') | third_party/WebKit/Source/web/WebGeolocationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698