OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 5161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5172 KURL FrameLoader::originalRequestURL() const | 5172 KURL FrameLoader::originalRequestURL() const |
5173 { | 5173 { |
5174 return activeDocumentLoader()->originalRequest().url(); | 5174 return activeDocumentLoader()->originalRequest().url(); |
5175 } | 5175 } |
5176 | 5176 |
5177 String FrameLoader::referrer() const | 5177 String FrameLoader::referrer() const |
5178 { | 5178 { |
5179 return documentLoader()->request().httpReferrer(); | 5179 return documentLoader()->request().httpReferrer(); |
5180 } | 5180 } |
5181 | 5181 |
| 5182 void FrameLoader::dispatchDocumentElementAvailable() |
| 5183 { |
| 5184 m_client->documentElementAvailable(); |
| 5185 } |
| 5186 |
5182 void FrameLoader::dispatchWindowObjectAvailable() | 5187 void FrameLoader::dispatchWindowObjectAvailable() |
5183 { | 5188 { |
5184 #if USE(JSC) | 5189 #if USE(JSC) |
5185 if (!m_frame->script()->isEnabled() || !m_frame->script()->haveWindowShell()
) | 5190 if (!m_frame->script()->isEnabled() || !m_frame->script()->haveWindowShell()
) |
5186 return; | 5191 return; |
5187 #else | 5192 #else |
5188 // TODO(tc): We should also return early if we have no window shell. | 5193 // TODO(tc): We should also return early if we have no window shell. |
5189 // But we can't check that until we refactor ScriptController. | 5194 // But we can't check that until we refactor ScriptController. |
5190 if (!m_frame->script()->isEnabled()) | 5195 if (!m_frame->script()->isEnabled()) |
5191 return; | 5196 return; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5510 } | 5515 } |
5511 | 5516 |
5512 #endif | 5517 #endif |
5513 | 5518 |
5514 bool FrameLoaderClient::hasHTMLView() const | 5519 bool FrameLoaderClient::hasHTMLView() const |
5515 { | 5520 { |
5516 return true; | 5521 return true; |
5517 } | 5522 } |
5518 | 5523 |
5519 } // namespace WebCore | 5524 } // namespace WebCore |
OLD | NEW |