Changeset 65796 in webkit


Ignore:
Timestamp:
Aug 23, 2010 1:10:30 AM (14 years ago)
Author:
Girish Ramakrishnan
Message:

[Qt] Allow wmode=transparent in QWebView on Maemo5 after r65775.

https://bugs.webkit.org/show_bug.cgi?id=44043

Reviewed by Ariya Hidayat.

  • WebCoreSupport/FrameLoaderClientQt.cpp:

(WebCore::FrameLoaderClientQt::createPlugin):

Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r65789 r65796  
     12010-08-20  Girish Ramakrishnan  <girish@forwardbias.in>
     2
     3        Reviewed by Ariya Hidayat.
     4
     5        [Qt] Allow wmode=transparent in QWebView on Maemo5 after r65775.
     6       
     7        https://bugs.webkit.org/show_bug.cgi?id=44043
     8
     9        * WebCoreSupport/FrameLoaderClientQt.cpp:
     10        (WebCore::FrameLoaderClientQt::createPlugin):
     11
    1122010-08-22  Marc Mutz  <marc.mutz@kdab.com>
    213
  • trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp

    r65711 r65796  
    55 * Copyright (C) 2008 Collabora Ltd. All rights reserved.
    66 * Coypright (C) 2008 Holger Hans Peter Freyther
    7  * Coypright (C) 2009 Girish Ramakrishnan <girish@forwardbias.in>
     7 * Coypright (C) 2009, 2010 Girish Ramakrishnan <girish@forwardbias.in>
    88 *
    99 * All rights reserved.
     
    14641464        if (mimeType == "application/x-shockwave-flash") {
    14651465            QWebPageClient* client = m_webFrame->page()->d->client;
     1466            const bool isQWebView = client && qobject_cast<QWidget*>(client->pluginParent());
    14661467#if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5)
    1467             if (true) {
     1468            size_t wmodeIndex = params.find("wmode");
     1469            if (wmodeIndex == -1) {
     1470                // Disable XEmbed mode and force it to opaque mode
     1471                params.append("wmode");
     1472                values.append("opaque");
     1473            } else if (!isQWebView) {
     1474                // Disable transparency if client is not a QWebView
     1475                values[wmodeIndex] = "opaque";
     1476            }
    14681477#else
    1469             if (!client || !qobject_cast<QWidget*>(client->pluginParent())) {
    1470 #endif
     1478            if (!isQWebView) {
    14711479                // inject wmode=opaque when there is no client or the client is not a QWebView
    14721480                size_t wmodeIndex = params.find("wmode");
     
    14771485                    values[wmodeIndex] = "opaque";
    14781486            }
     1487#endif
    14791488        }
    14801489
Note: See TracChangeset for help on using the changeset viewer.