Changeset 19198 for S60/trunk/WebCore

Show
Ignore:
Timestamp:
01/28/07 10:17:19 (2 years ago)
Author:
brmorris
Message:

bujtas <zbujtas@gmail.com>

Rs'd by Brad
DESC: display fallback content in case of unsupported plugin.
http://bugs.webkit.org/show_bug.cgi?id=12426

fix: webkit should return null, if the plugin is not supported.

  • bridge/WebCoreBridge.h:
  • kwq/KWQKHTMLPart.cpp: (KWQKHTMLPart::createPart): (KWQKHTMLPart::createSoundstart):
Location:
S60/trunk/WebCore
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • S60/trunk/WebCore/ChangeLog

    r19179 r19198  
     12007-01-26  bujtas  <zbujtas@gmail.com> 
     2 
     3        Rs'd by Brad 
     4        DESC: display fallback content in case of unsupported plugin. 
     5        http://bugs.webkit.org/show_bug.cgi?id=12426 
     6 
     7         fix: webkit should return null, if the plugin is not supported. 
     8 
     9        * bridge/WebCoreBridge.h: 
     10        * kwq/KWQKHTMLPart.cpp: 
     11        (KWQKHTMLPart::createPart): 
     12        (KWQKHTMLPart::createSoundstart): 
     13 
    1142007-01-26  bujtas  <zbujtas@gmail.com> 
    215 
  • S60/trunk/WebCore/bridge/WebCoreBridge.h

    r18891 r19198  
    664664                                                        const TDesC& aBaseUrl, 
    665665                                                        const TDesC& aMIMEType, 
    666                                                         TBool aCanLoadPluginContent) = 0; 
     666                                                        TBool aCanLoadPluginContent, 
     667                                                        TBool aHasFallbackContent ) = 0; 
    667668 
    668669//- (NSView *)viewForJavaAppletWithFrame(NSRect)frame 
  • S60/trunk/WebCore/kwq/KWQKHTMLPart.cpp

    r18807 r19198  
    905905 
    906906        QObjectWidget* objectWidget = NULL; 
    907         objectWidget = new QObjectWidget(_bridge->Client().ViewForPluginWithURL(url.Des(), 
    908                                                                                 *attributeNames, 
    909                                                                                 *attributeValues, 
    910                                                                                 d->m_doc->baseURL().Des(), 
    911                                                                                 child.m_args.serviceType.Des(), 
    912                                                                                 canLoadPluginContent)); 
     907        MWebCoreObjectWidget* w = _bridge->Client().ViewForPluginWithURL(url.Des(), *attributeNames, *attributeValues, d->m_doc->baseURL().Des(), 
     908            child.m_args.serviceType.Des(), canLoadPluginContent, child.m_hasFallbackContent); 
     909        if (w) { 
     910            objectWidget = new QObjectWidget(w); 
     911        } 
    913912 
    914913        delete attributeNames; 
     
    992991                                                                                *attributeValues, 
    993992                                                                                d->m_doc->baseURL().Des(), 
    994                                                                                 soundstartType.Des(),ETrue)); 
     993                                                                                soundstartType.Des(),ETrue, EFalse)); 
    995994 
    996995        delete attributeNames;