• commit-queue@webkit.org's avatar
    [BlackBerry] Allow WebPageCompositor to blend a transparent web page · f915c290
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=88233
    
    Patch by Arvid Nilsson <anilsson@rim.com> on 2012-06-07
    Reviewed by Rob Buis.
    
    RIM PR #159998
    
    Source/WebCore:
    
    Add a parameter to LayerRenderer::compositeBuffer() indicating whether
    the buffer contents are opaque, and set the GL blend mode accordingly.
    
    This is not currently testable using BlackBerry testing infrastructure.
    
    Reviewed internally by Jakob Petsovits.
    
    * platform/graphics/blackberry/LayerRenderer.cpp:
    (WebCore::LayerRenderer::compositeBuffer):
    * platform/graphics/blackberry/LayerRenderer.h:
    (LayerRenderer):
    
    Source/WebKit/blackberry:
    
    Keep track of the web page background color in the compositor so we can
    determine whether the contents of the root layer are transparent.
    
    Reviewed internally by Jakob Petsovits.
    
    * Api/BackingStore.cpp:
    (BlackBerry::WebKit::BackingStorePrivate::compositeContents):
    * Api/BackingStore_p.h:
    (BackingStorePrivate):
    * Api/WebPage.cpp:
    (BlackBerry::WebKit::WebPagePrivate::setCompositor):
    (BlackBerry::WebKit::WebPagePrivate::setCompositorBackgroundColor):
    (WebKit):
    (BlackBerry::WebKit::WebPagePrivate::createCompositor):
    (BlackBerry::WebKit::WebPagePrivate::didChangeSettings):
    * Api/WebPageCompositor.cpp:
    (BlackBerry::WebKit::WebPageCompositorPrivate::render):
    (BlackBerry::WebKit::WebPageCompositorPrivate::setBackgroundColor):
    (WebKit):
    * Api/WebPageCompositor_p.h:
    (BlackBerry::WebKit::WebPageCompositorPrivate::backgroundColor):
    (WebPageCompositorPrivate):
    * Api/WebPage_p.h:
    (WebPagePrivate):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119718 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f915c290
ChangeLog 217 KB