OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 } | 117 } |
118 | 118 |
119 DEFINE_TRACE(FrameLoaderClientImpl) | 119 DEFINE_TRACE(FrameLoaderClientImpl) |
120 { | 120 { |
121 visitor->trace(m_webFrame); | 121 visitor->trace(m_webFrame); |
122 FrameLoaderClient::trace(visitor); | 122 FrameLoaderClient::trace(visitor); |
123 } | 123 } |
124 | 124 |
125 void FrameLoaderClientImpl::didCreateNewDocument() | 125 void FrameLoaderClientImpl::didCreateNewDocument() |
126 { | 126 { |
127 if (m_webFrame->client()) | 127 if (m_webFrame->client()) { |
| 128 m_webFrame->frame()->document()->setServiceProvider(m_webFrame->client()
->serviceProvider()); |
128 m_webFrame->client()->didCreateNewDocument(m_webFrame); | 129 m_webFrame->client()->didCreateNewDocument(m_webFrame); |
| 130 } |
129 } | 131 } |
130 | 132 |
131 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() | 133 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() |
132 { | 134 { |
133 if (m_webFrame->client()) { | 135 if (m_webFrame->client()) { |
134 m_webFrame->client()->didClearWindowObject(m_webFrame); | 136 m_webFrame->client()->didClearWindowObject(m_webFrame); |
135 Document* document = m_webFrame->frame()->document(); | 137 Document* document = m_webFrame->frame()->document(); |
136 if (document) { | 138 if (document) { |
137 DeviceMotionController::from(*document); | 139 DeviceMotionController::from(*document); |
138 DeviceOrientationController::from(*document); | 140 DeviceOrientationController::from(*document); |
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 | 945 |
944 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 946 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
945 { | 947 { |
946 if (m_webFrame->client()) { | 948 if (m_webFrame->client()) { |
947 m_webFrame->client()->suddenTerminationDisablerChanged( | 949 m_webFrame->client()->suddenTerminationDisablerChanged( |
948 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 950 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
949 } | 951 } |
950 } | 952 } |
951 | 953 |
952 } // namespace blink | 954 } // namespace blink |
OLD | NEW |