commit | 51269d9bfbbd899ee11fe74449882076e61cbb6f | [log] [tgz] |
---|---|---|
author | akling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Thu Oct 10 12:01:51 2013 +0000 |
committer | akling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Thu Oct 10 12:01:51 2013 +0000 |
tree | db2d76bcf54395ccc497251a8ceadccf043ced93 | |
parent | 048ebc37eb9d1ff49222dc000153904394675530 [diff] [blame] |
JS DOM wrappers' impl() functions should return references. <https://webkit.org/b/122497> Reviewed by Antti Koivisto. JS DOM wrappers always have a corresponding WebCore object during their lifetime, so make impl() return a reference. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/bindings/js/ScheduledAction.cpp b/Source/WebCore/bindings/js/ScheduledAction.cpp index 016931f..3856d01 100644 --- a/Source/WebCore/bindings/js/ScheduledAction.cpp +++ b/Source/WebCore/bindings/js/ScheduledAction.cpp
@@ -125,7 +125,7 @@ if (!window) return; - RefPtr<Frame> frame = window->impl()->frame(); + RefPtr<Frame> frame = window->impl().frame(); if (!frame || !frame->script().canExecuteScripts(AboutToExecuteScript)) return;