Skip to content
  • jamesr@google.com's avatar
    [chromium] Only use public Platform API in NonCompositedContentHost · c621fcb3
    jamesr@google.com authored
    https://bugs.webkit.org/show_bug.cgi?id=93423
    
    Reviewed by Adrienne Walker.
    
    Source/Platform:
    
    Adds setters to control text antialiasing and checkerboarding behavior for content layers.
    
    * chromium/public/WebContentLayer.h:
    (WebContentLayer):
    
    Source/WebCore:
    
    This renames the "NonCompositedContentHost" flag to "useLCDText", which is the primary purpose of the flag. We
    also use this flag to control whether we have border texels or not on the "root" layer, but I can't think of a
    clean name that encapsulates both behaviors.
    
    * platform/graphics/chromium/LayerChromium.cpp:
    (WebCore::LayerChromium::LayerChromium):
    (WebCore::LayerChromium::setUseLCDText):
    (WebCore::LayerChromium::pushPropertiesTo):
    * platform/graphics/chromium/LayerChromium.h:
    (LayerChromium):
    (WebCore::LayerChromium::useLCDText):
    * platform/graphics/chromium/TiledLayerChromium.cpp:
    (WebCore::TiledLayerChromium::setUseLCDText):
    * platform/graphics/chromium/TiledLayerChromium.h:
    * platform/graphics/chromium/cc/CCLayerImpl.cpp:
    (WebCore::CCLayerImpl::CCLayerImpl):
    * platform/graphics/chromium/cc/CCLayerImpl.h:
    (WebCore::CCLayerImpl::setUseLCDText):
    (WebCore::CCLayerImpl::useLCDText):
    (CCLayerImpl):
    
    Source/WebKit/chromium:
    
    Switches to using Web*Layer APIs in NonCompositedContentHost instead of reaching in to the LayerChromium and
    updates unit tests for the nonCompositedContent->useLCDText flag rename.
    
    * src/NonCompositedContentHost.cpp:
    (WebKit::NonCompositedContentHost::NonCompositedContentHost):
    * src/WebContentLayer.cpp:
    (WebKit::WebContentLayer::setUseLCDText):
    (WebKit):
    (WebKit::WebContentLayer::setDrawCheckerboardForMissingTiles):
    * src/WebViewImpl.cpp:
    * tests/CCLayerImplTest.cpp:
    (WebCore::TEST):
    * tests/CCLayerTreeHostImplTest.cpp:
    * tests/LayerChromiumTest.cpp:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c621fcb3