12012-06-13 Christopher Cameron <ccameron@chromium.org>
2
3 [chromium] webkit-backface-visibility doesn't work with video
4 https://bugs.webkit.org/show_bug.cgi?id=88908
5
6 When determining a contents layer's backface culling, use the parent
7 layer's transform and backface-visibility properties. Track which
8 layers need this special treatment with useParentBackfaceVisibility
9 and setUseParentBackfaceVisibility functions in WebCore::LayerChromium,
10 WebKit::WebLayer, and WebCore::CCLayerImpl.
11
12 Reviewed by NOBODY (OOPS!).
13
14 * platform/graphics/chromium/GraphicsLayerChromium.cpp:
15 (WebCore::GraphicsLayerChromium::setupContentsLayer):
16 When a contents layer is added, tag it as inheriting its backface
17 culling from its parent.
18 * platform/graphics/chromium/LayerChromium.cpp:
19 (WebCore::LayerChromium::LayerChromium):
20 Initialize new m_useParentBackfaceVisibility member variable.
21 (WebCore::LayerChromium::pushPropertiesTo):
22 Propagate m_useParentBackfaceVisibility to CCLayerImpl.
23 * platform/graphics/chromium/LayerChromium.h:
24 (WebCore::LayerChromium::setUseParentBackfaceVisibility):
25 (WebCore::LayerChromium::useParentBackfaceVisibility):
26 (LayerChromium):
27 Add m_useParentBackfaceVisibility member variable and modify
28 and query accessors.
29 * platform/graphics/chromium/cc/CCLayerImpl.cpp:
30 (WebCore::CCLayerImpl::CCLayerImpl):
31 Initialize new m_useParentBackfaceVisibility member variable.
32 * platform/graphics/chromium/cc/CCLayerImpl.h:
33 (WebCore::CCLayerImpl::setUseParentBackfaceVisibility):
34 (WebCore::CCLayerImpl::useParentBackfaceVisibility):
35 (CCLayerImpl):
36 Add m_useParentBackfaceVisibility member variable and modify
37 and query accessors.
38 * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
39 (WebCore::layerShouldBeSkipped):
40 When examining a layer, if the layer has
41 useParentBackfaceVisibility set then use the layer's parent
42 layer to determine backface culling.
43