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

Unified Diff: third_party/WebKit/Source/core/events/KeyboardEvent.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/events/KeyboardEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
index 9295a008e39348a8f98e3ac7c162094252d75168..7f26e9fae8d6ea5aa527bebdd084bec44de0e97a 100644
--- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
+++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
@@ -59,11 +59,11 @@ static inline KeyboardEvent::KeyLocationCode keyLocationCode(const PlatformKeybo
return KeyboardEvent::DOM_KEY_LOCATION_STANDARD;
}
-PassRefPtrWillBeRawPtr<KeyboardEvent> KeyboardEvent::create(ScriptState* scriptState, const AtomicString& type, const KeyboardEventInit& initializer)
+RawPtr<KeyboardEvent> KeyboardEvent::create(ScriptState* scriptState, const AtomicString& type, const KeyboardEventInit& initializer)
{
if (scriptState->world().isIsolatedWorld())
UIEventWithKeyState::didCreateEventInIsolatedWorld(initializer.ctrlKey(), initializer.altKey(), initializer.shiftKey(), initializer.metaKey());
- return adoptRefWillBeNoop(new KeyboardEvent(type, initializer));
+ return (new KeyboardEvent(type, initializer));
}
KeyboardEvent::KeyboardEvent()
@@ -192,7 +192,7 @@ void KeyboardEvent::initLocationModifiers(unsigned location)
}
}
-PassRefPtrWillBeRawPtr<EventDispatchMediator> KeyboardEvent::createMediator()
+RawPtr<EventDispatchMediator> KeyboardEvent::createMediator()
{
return KeyboardEventDispatchMediator::create(this);
}
@@ -202,12 +202,12 @@ DEFINE_TRACE(KeyboardEvent)
UIEventWithKeyState::trace(visitor);
}
-PassRefPtrWillBeRawPtr<KeyboardEventDispatchMediator> KeyboardEventDispatchMediator::create(PassRefPtrWillBeRawPtr<KeyboardEvent> event)
+RawPtr<KeyboardEventDispatchMediator> KeyboardEventDispatchMediator::create(RawPtr<KeyboardEvent> event)
{
- return adoptRefWillBeNoop(new KeyboardEventDispatchMediator(event));
+ return (new KeyboardEventDispatchMediator(event));
}
-KeyboardEventDispatchMediator::KeyboardEventDispatchMediator(PassRefPtrWillBeRawPtr<KeyboardEvent> event)
+KeyboardEventDispatchMediator::KeyboardEventDispatchMediator(RawPtr<KeyboardEvent> event)
: EventDispatchMediator(event)
{
}

Powered by Google App Engine
This is Rietveld 408576698