-
shawnsingh@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=72919 Reviewed by James Robinson. Source/WebCore: Unit test added to TiledLayerChromiumTest.cpp The m_updateRect member in LayerChromium types is used to track what was painted for that layer. For tiled layers (especially image layers), the updateRect was being given with respect to the size of the content, rather than the size of the layer. This patch adds a conversion so that updateRect is always with respect to the layer size, so that damage tracking will work correctly in those cases. * platform/graphics/chromium/LayerChromium.h: * platform/graphics/chromium/TiledLayerChromium.cpp: (WebCore::TiledLayerChromium::updateCompositorResources): Source/WebKit/chromium: * tests/TiledLayerChromiumTest.cpp: (WTF::FakeTiledLayerWithScaledBounds::FakeTiledLayerWithScaledBounds): (WTF::FakeTiledLayerWithScaledBounds::setContentBounds): (WTF::FakeTiledLayerWithScaledBounds::contentBounds): (WTF::FakeTiledLayerWithScaledBounds::updateRect): (WTF::TEST): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24b7c203