Commit 03eb1644 authored by ojan@chromium.org's avatar ojan@chromium.org

Remove straggling references to forceCompositingMode.

Cleaned up style of translatez-removed.html while updating it.

Review URL: https://codereview.chromium.org/324363003

git-svn-id: svn://svn.chromium.org/blink/trunk@176136 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent adccc473
......@@ -5,15 +5,6 @@
(bounds 800.00 600.00)
(contentsOpaque 1)
(drawsContent 1)
(children 1
(GraphicsLayer
(position 8.00 230.00)
(bounds 20.00 20.00)
(contentsOpaque 1)
(drawsContent 1)
(backgroundColor #C0C0C0)
)
)
)
)
)
......
<!DOCTYPE html>
<style>
.box {
height: 200px;
width: 200px;
margin: 10px;
padding: 5px;
background-color: blue;
}
<html>
<head>
<style type="text/css" media="screen">
.box {
height: 200px;
width: 200px;
margin: 10px;
padding: 5px;
background-color: blue;
}
.composited {
-webkit-transform: translateZ(0);
}
.composited {
-webkit-transform: translateZ(0);
}
#trigger {
width: 20px;
height: 20px;
background-color: silver;
}
#trigger {
width: 20px;
height: 20px;
background-color: silver;
}
</style>
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
window.testRunner.dumpAsText();
}
function doTest()
{
document.getElementById('test').className = 'box';
if (window.testRunner) {
function doTest()
{
document.getElementById('test').classList.remove('composited');
if (window.testRunner)
document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
}
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<!-- This test div starts out with a 3d transform, but should be
de-promoted from a composited layer before the test completes. -->
<div id="test" class="composited box">
</div>
<!-- This div exists to keep blink in compositing mode until
ForceCompositingMode is always on. -->
<div id="trigger" class="composited">
</div>
<pre id="layers">Layer tree appears here in DRT.</pre>
</body>
</html>
}
window.addEventListener('load', doTest, false);
</script>
<!-- This test div starts out with a 3d transform, but should be
de-promoted from a composited layer before the test completes. -->
<div id="test" class="composited box"></div>
<pre id="layers">Layer tree appears here in DRT.</pre>
......@@ -195,7 +195,7 @@ TEST_F(PinchViewportTest, TestResize)
EXPECT_SIZE_EQ(newViewportSize, pinchViewport.size());
}
static void turnOffForceCompositingMode(WebSettings* settings)
static void disableAcceleratedCompositing(WebSettings* settings)
{
PinchViewportTest::configureSettings(settings);
// FIXME: This setting is being removed, so this test needs to be rewritten to
......@@ -207,7 +207,7 @@ static void turnOffForceCompositingMode(WebSettings* settings)
// prior to the PinchViewport being attached to the layer tree.
TEST_F(PinchViewportTest, TestWebViewResizedBeforeAttachment)
{
initializeWithDesktopSettings(turnOffForceCompositingMode);
initializeWithDesktopSettings(disableAcceleratedCompositing);
webViewImpl()->resize(IntSize(320, 240));
navigateTo("about:blank");
......
......@@ -122,8 +122,6 @@ public:
virtual void setExperimentalWebGLEnabled(bool) = 0;
virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0;
virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0;
// FIXME: Remove this once DevToolsAgent::enableDeviceEmulation stops calling it.
virtual void setForceCompositingMode(bool) { };
virtual void setGestureTapHighlightEnabled(bool) = 0;
virtual void setHyperlinkAuditingEnabled(bool) = 0;
virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment