diff options
author | Steve Block <steveblock@google.com> | 2011-05-25 19:08:45 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:51:31 +0100 |
commit | 2bde8e466a4451c7319e3a072d118917957d6554 (patch) | |
tree | 28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Source/WebCore/plugins | |
parent | 6939c99b71d9372d14a0c74a772108052e8c48c8 (diff) | |
download | external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2 |
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Source/WebCore/plugins')
-rw-r--r-- | Source/WebCore/plugins/PluginPackage.cpp | 2 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginStream.cpp | 10 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginStream.h | 4 | ||||
-rw-r--r-- | Source/WebCore/plugins/PluginViewNone.cpp | 1 | ||||
-rw-r--r-- | Source/WebCore/plugins/gtk/PluginViewGtk.cpp | 5 | ||||
-rw-r--r-- | Source/WebCore/plugins/qt/PluginPackageQt.cpp | 2 | ||||
-rw-r--r-- | Source/WebCore/plugins/qt/PluginViewQt.cpp | 2 | ||||
-rw-r--r-- | Source/WebCore/plugins/win/PluginPackageWin.cpp | 5 | ||||
-rw-r--r-- | Source/WebCore/plugins/win/PluginViewWin.cpp | 4 |
9 files changed, 19 insertions, 16 deletions
diff --git a/Source/WebCore/plugins/PluginPackage.cpp b/Source/WebCore/plugins/PluginPackage.cpp index 10149bf..285f5c5 100644 --- a/Source/WebCore/plugins/PluginPackage.cpp +++ b/Source/WebCore/plugins/PluginPackage.cpp @@ -348,7 +348,7 @@ unsigned PluginPackage::hash() const m_lastModified }; - return WTF::StringHasher::createBlobHash<sizeof(hashCodes)>(hashCodes); + return StringHasher::hashMemory<sizeof(hashCodes)>(hashCodes); } bool PluginPackage::equal(const PluginPackage& a, const PluginPackage& b) diff --git a/Source/WebCore/plugins/PluginStream.cpp b/Source/WebCore/plugins/PluginStream.cpp index f9021a8..48379f0 100644 --- a/Source/WebCore/plugins/PluginStream.cpp +++ b/Source/WebCore/plugins/PluginStream.cpp @@ -34,7 +34,7 @@ #include "ResourceLoadScheduler.h" #include "SharedBuffer.h" #include "SubresourceLoader.h" -#include <StringExtras.h> +#include <wtf/StringExtras.h> #include <wtf/text/CString.h> #include <wtf/text/StringConcatenate.h> @@ -257,7 +257,7 @@ void PluginStream::destroyStream() if (m_loader) m_loader->setDefersLoading(true); - m_pluginFuncs->asfile(m_instance, &m_stream, m_path.data()); + m_pluginFuncs->asfile(m_instance, &m_stream, m_path.utf8().data()); if (m_loader) m_loader->setDefersLoading(false); } @@ -306,10 +306,8 @@ void PluginStream::destroyStream() if (!m_loadManually && m_client) m_client->streamDidFinishLoading(this); - if (!m_path.isNull()) { - String tempFilePath = String::fromUTF8(m_path.data()); - deleteFile(tempFilePath); - } + if (!m_path.isNull()) + deleteFile(m_path); } void PluginStream::delayDeliveryTimerFired(Timer<PluginStream>* timer) diff --git a/Source/WebCore/plugins/PluginStream.h b/Source/WebCore/plugins/PluginStream.h index ae69539..fe4d038 100644 --- a/Source/WebCore/plugins/PluginStream.h +++ b/Source/WebCore/plugins/PluginStream.h @@ -113,8 +113,8 @@ namespace WebCore { NPP m_instance; uint16_t m_transferMode; int32_t m_offset; - WTF::CString m_headers; - WTF::CString m_path; + CString m_headers; + String m_path; NPReason m_reason; NPStream m_stream; PluginQuirkSet m_quirks; diff --git a/Source/WebCore/plugins/PluginViewNone.cpp b/Source/WebCore/plugins/PluginViewNone.cpp index 383ac49..3bdec6f 100644 --- a/Source/WebCore/plugins/PluginViewNone.cpp +++ b/Source/WebCore/plugins/PluginViewNone.cpp @@ -28,6 +28,7 @@ #if USE(JSC) #include "BridgeJSC.h" +#include <runtime/JSObject.h> #include <runtime/ScopeChain.h> #endif diff --git a/Source/WebCore/plugins/gtk/PluginViewGtk.cpp b/Source/WebCore/plugins/gtk/PluginViewGtk.cpp index 75a51c5..58a4f2c 100644 --- a/Source/WebCore/plugins/gtk/PluginViewGtk.cpp +++ b/Source/WebCore/plugins/gtk/PluginViewGtk.cpp @@ -48,6 +48,7 @@ #include "KeyboardEvent.h" #include "MouseEvent.h" #include "Page.h" +#include "PlatformContextCairo.h" #include "PlatformKeyboardEvent.h" #include "PlatformMouseEvent.h" #include "PluginDebug.h" @@ -217,7 +218,7 @@ void PluginView::paint(GraphicsContext* context, const IntRect& rect) // avoid drawing artifacts. // This Would not work without double buffering, but we always use it. - cairo_set_source_surface(cr.get(), cairo_get_group_target(context->platformContext()), + cairo_set_source_surface(cr.get(), cairo_get_group_target(context->platformContext()->cr()), -m_windowRect.x(), -m_windowRect.y()); cairo_set_operator(cr.get(), CAIRO_OPERATOR_SOURCE); } else @@ -244,7 +245,7 @@ void PluginView::paint(GraphicsContext* context, const IntRect& rect) if (syncX) XSync(m_pluginDisplay, false); // sync changes by plugin - cairo_t* cr = context->platformContext(); + cairo_t* cr = context->platformContext()->cr(); cairo_save(cr); cairo_set_source_surface(cr, drawableSurface.get(), frameRect().x(), frameRect().y()); diff --git a/Source/WebCore/plugins/qt/PluginPackageQt.cpp b/Source/WebCore/plugins/qt/PluginPackageQt.cpp index ce07faf..19941d6 100644 --- a/Source/WebCore/plugins/qt/PluginPackageQt.cpp +++ b/Source/WebCore/plugins/qt/PluginPackageQt.cpp @@ -121,7 +121,7 @@ static void initializeGtk(QLibrary* module = 0) } } - QLibrary library("libgtk-x11-2.0.so.0"); + QLibrary library(QLatin1String("libgtk-x11-2.0.so.0")); if (library.load()) { typedef void *(*gtk_init_check_ptr)(int*, char***); gtk_init_check_ptr gtkInitCheck = (gtk_init_check_ptr)library.resolve("gtk_init_check"); diff --git a/Source/WebCore/plugins/qt/PluginViewQt.cpp b/Source/WebCore/plugins/qt/PluginViewQt.cpp index 611abb9..dcb805a 100644 --- a/Source/WebCore/plugins/qt/PluginViewQt.cpp +++ b/Source/WebCore/plugins/qt/PluginViewQt.cpp @@ -847,7 +847,7 @@ static Display *getPluginDisplay() // support gdk based plugins (like flash) that use a different X connection. // The code below has the same effect as this one: // Display *gdkDisplay = gdk_x11_display_get_xdisplay(gdk_display_get_default()); - QLibrary library("libgdk-x11-2.0", 0); + QLibrary library(QLatin1String("libgdk-x11-2.0"), 0); if (!library.load()) return 0; diff --git a/Source/WebCore/plugins/win/PluginPackageWin.cpp b/Source/WebCore/plugins/win/PluginPackageWin.cpp index e06d1f4..e835e3c 100644 --- a/Source/WebCore/plugins/win/PluginPackageWin.cpp +++ b/Source/WebCore/plugins/win/PluginPackageWin.cpp @@ -74,6 +74,9 @@ bool PluginPackage::isPluginBlacklisted() } else if (fileName() == "npmozax.dll") { // Bug 15217: Mozilla ActiveX control complains about missing xpcom_core.dll return true; + } else if (fileName() == "npwpf.dll") { + // Bug 57119: Microsoft Windows Presentation Foundation (WPF) plug-in complains about missing xpcom.dll + return true; } else if (name() == "Yahoo Application State Plugin") { // https://bugs.webkit.org/show_bug.cgi?id=26860 // Bug in Yahoo Application State plug-in earlier than 1.0.0.6 leads to heap corruption. @@ -312,7 +315,7 @@ unsigned PluginPackage::hash() const m_mimeToExtensions.size() }; - return WTF::StringHasher::createBlobHash<sizeof(hashCodes)>(hashCodes); + return StringHasher::hashMemory<sizeof(hashCodes)>(hashCodes); } bool PluginPackage::equal(const PluginPackage& a, const PluginPackage& b) diff --git a/Source/WebCore/plugins/win/PluginViewWin.cpp b/Source/WebCore/plugins/win/PluginViewWin.cpp index 208121e..f575709 100644 --- a/Source/WebCore/plugins/win/PluginViewWin.cpp +++ b/Source/WebCore/plugins/win/PluginViewWin.cpp @@ -83,6 +83,7 @@ #endif #if PLATFORM(CAIRO) +#include "PlatformContextCairo.h" #include <cairo-win32.h> #endif @@ -572,8 +573,7 @@ void PluginView::paintWindowedPluginIntoContext(GraphicsContext* context, const // Must flush drawings up to this point to the backing metafile, otherwise the // plugin region will be overwritten with any clear regions specified in the // cairo-controlled portions of the rendering. - PlatformGraphicsContext* ctx = context->platformContext(); - cairo_show_page(ctx); + cairo_show_page(context->platformContext()->cr()); #endif HDC hdc = windowsContext.hdc(); |