OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Alp Toker <alp@atoker.com> | 2 * Copyright (C) 2007, 2008 Alp Toker <alp@atoker.com> |
3 * Copyright (C) 2007, 2008, 2009 Holger Hans Peter Freyther | 3 * Copyright (C) 2007, 2008, 2009 Holger Hans Peter Freyther |
4 * Copyright (C) 2007 Christian Dywan <christian@twotoasts.de> | 4 * Copyright (C) 2007 Christian Dywan <christian@twotoasts.de> |
5 * Copyright (C) 2008, 2009 Collabora Ltd. All rights reserved. | 5 * Copyright (C) 2008, 2009 Collabora Ltd. All rights reserved. |
6 * Copyright (C) 2009, 2010 Gustavo Noronha Silva <gns@gnome.org> | 6 * Copyright (C) 2009, 2010 Gustavo Noronha Silva <gns@gnome.org> |
7 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
8 * Copyright (C) 2010 Igalia S.L. | 8 * Copyright (C) 2010 Igalia S.L. |
9 * Copyright (C) 2011 Apple Inc. All rights reserved. | 9 * Copyright (C) 2011 Apple Inc. All rights reserved. |
10 * | 10 * |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 | 527 |
528 // The frame's onload handler may have removed it from the document. | 528 // The frame's onload handler may have removed it from the document. |
529 if (!childFrame->tree()->parent()) | 529 if (!childFrame->tree()->parent()) |
530 return 0; | 530 return 0; |
531 | 531 |
532 return childFrame.release(); | 532 return childFrame.release(); |
533 } | 533 } |
534 | 534 |
535 void FrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget) | 535 void FrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget) |
536 { | 536 { |
537 ASSERT(!m_pluginView); | |
538 m_pluginView = static_cast<PluginView*>(pluginWidget); | 537 m_pluginView = static_cast<PluginView*>(pluginWidget); |
539 m_hasSentResponseToPlugin = false; | 538 if (pluginWidget) |
| 539 m_hasSentResponseToPlugin = false; |
540 } | 540 } |
541 | 541 |
542 PassRefPtr<Widget> FrameLoaderClient::createJavaAppletWidget(const IntSize& plug
inSize, HTMLAppletElement* element, const KURL& baseURL, const Vector<String>& p
aramNames, const Vector<String>& paramValues) | 542 PassRefPtr<Widget> FrameLoaderClient::createJavaAppletWidget(const IntSize& plug
inSize, HTMLAppletElement* element, const KURL& baseURL, const Vector<String>& p
aramNames, const Vector<String>& paramValues) |
543 { | 543 { |
544 return FrameLoaderClient::createPlugin(pluginSize, element, baseURL, paramNa
mes, paramValues, "application/x-java-applet", false); | 544 return FrameLoaderClient::createPlugin(pluginSize, element, baseURL, paramNa
mes, paramValues, "application/x-java-applet", false); |
545 } | 545 } |
546 | 546 |
547 ObjectContentType FrameLoaderClient::objectContentType(const KURL& url, const St
ring& mimeType, bool shouldPreferPlugInsForImages) | 547 ObjectContentType FrameLoaderClient::objectContentType(const KURL& url, const St
ring& mimeType, bool shouldPreferPlugInsForImages) |
548 { | 548 { |
549 return FrameLoader::defaultObjectContentType(url, mimeType, shouldPreferPlug
InsForImages); | 549 return FrameLoader::defaultObjectContentType(url, mimeType, shouldPreferPlug
InsForImages); |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1250 void FrameLoaderClient::dispatchDidBecomeFrameset(bool) | 1250 void FrameLoaderClient::dispatchDidBecomeFrameset(bool) |
1251 { | 1251 { |
1252 } | 1252 } |
1253 | 1253 |
1254 PassRefPtr<FrameNetworkingContext> FrameLoaderClient::createNetworkingContext() | 1254 PassRefPtr<FrameNetworkingContext> FrameLoaderClient::createNetworkingContext() |
1255 { | 1255 { |
1256 return FrameNetworkingContextGtk::create(core(m_frame)); | 1256 return FrameNetworkingContextGtk::create(core(m_frame)); |
1257 } | 1257 } |
1258 | 1258 |
1259 } | 1259 } |
OLD | NEW |