| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2011, 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 18 * | 18 * |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "core/html/HTMLPlugInImageElement.h" | 22 #include "core/html/HTMLPlugInImageElement.h" |
| 23 | 23 |
| 24 #include <wtf/CurrentTime.h> | |
| 25 #include "bindings/v8/ScriptController.h" | 24 #include "bindings/v8/ScriptController.h" |
| 26 #include "core/dom/MouseEvent.h" | |
| 27 #include "core/dom/NodeList.h" | |
| 28 #include "core/dom/NodeRenderStyle.h" | |
| 29 #include "core/dom/NodeRenderingContext.h" | |
| 30 #include "core/dom/Text.h" | |
| 31 #include "core/dom/shadow/ShadowRoot.h" | |
| 32 #include "core/html/HTMLDivElement.h" | |
| 33 #include "core/html/HTMLImageLoader.h" | 25 #include "core/html/HTMLImageLoader.h" |
| 34 #include "core/loader/FrameLoader.h" | 26 #include "core/loader/FrameLoader.h" |
| 35 #include "core/loader/FrameLoaderClient.h" | 27 #include "core/loader/FrameLoaderClient.h" |
| 36 #include "core/page/Chrome.h" | |
| 37 #include "core/page/ChromeClient.h" | |
| 38 #include "core/page/Frame.h" | 28 #include "core/page/Frame.h" |
| 39 #include "core/page/FrameView.h" | |
| 40 #include "core/page/Page.h" | |
| 41 #include "core/page/Settings.h" | |
| 42 #include "core/platform/LocalizedStrings.h" | |
| 43 #include "core/platform/Logging.h" | 29 #include "core/platform/Logging.h" |
| 44 #include "core/platform/MIMETypeFromURL.h" | 30 #include "core/platform/MIMETypeFromURL.h" |
| 45 #include "core/platform/graphics/Image.h" | 31 #include "core/platform/graphics/Image.h" |
| 46 #include "core/rendering/RenderEmbeddedObject.h" | 32 #include "core/rendering/RenderEmbeddedObject.h" |
| 47 #include "core/rendering/RenderImage.h" | 33 #include "core/rendering/RenderImage.h" |
| 48 #include "weborigin/SchemeRegistry.h" | |
| 49 #include "weborigin/SecurityOrigin.h" | 34 #include "weborigin/SecurityOrigin.h" |
| 50 | 35 |
| 51 namespace WebCore { | 36 namespace WebCore { |
| 52 | 37 |
| 53 using namespace HTMLNames; | 38 using namespace HTMLNames; |
| 54 | 39 |
| 55 typedef Vector<RefPtr<HTMLPlugInImageElement> > HTMLPlugInImageElementList; | 40 typedef Vector<RefPtr<HTMLPlugInImageElement> > HTMLPlugInImageElementList; |
| 56 | 41 |
| 57 static const int sizingTinyDimensionThreshold = 40; | 42 static const int sizingTinyDimensionThreshold = 40; |
| 58 static const int sizingSmallWidthThreshold = 250; | 43 static const int sizingSmallWidthThreshold = 250; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 211 |
| 227 void HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn(const KURL& url) | 212 void HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn(const KURL& url) |
| 228 { | 213 { |
| 229 LOG(Plugins, "%p Plug-in URL: %s", this, m_url.utf8().data()); | 214 LOG(Plugins, "%p Plug-in URL: %s", this, m_url.utf8().data()); |
| 230 LOG(Plugins, " Loaded URL: %s", url.string().utf8().data()); | 215 LOG(Plugins, " Loaded URL: %s", url.string().utf8().data()); |
| 231 | 216 |
| 232 m_loadedUrl = url; | 217 m_loadedUrl = url; |
| 233 } | 218 } |
| 234 | 219 |
| 235 } // namespace WebCore | 220 } // namespace WebCore |
| OLD | NEW |