layout/generic/test/test_plugin_clipping2.xhtml
author L. David Baron <dbaron@dbaron.org>
Sat, 13 Sep 2014 06:17:36 -0700
changeset 228423 c81eb3a1336b2ab5f4e83b8b5df394dfea8be37e
parent 75087 1188456710819d4606e74396be333ead9fe63261
child 528457 c9c0c6f2eed54a187e124942e53c3660b4cf17d8
permissions -rw-r--r--
Bug 977991 patch 1 - Expose variant of RulesMatching on nsHTMLCSSStyleSheet that is less work to call. r=birtles This allows nsStyleSet::RuleNodeWithReplacement to call it without constructing an entire (and unnecessary) ElementRuleProcessorData, which will happen in patch 3.

<?xml version="1.0"?>
<?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
<html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Dynamic Tests">
<head>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
</head>
<body>

<script class="testbody" type="application/javascript">
<![CDATA[
if (navigator.platform.indexOf("Mac") == 0) {
  todo(false, "Mac plugins do not support complex clipping");
} else {
  window.open("plugin_clipping_helper2.xhtml", "", "width=620,height=320");
  SimpleTest.waitForExplicitFinish();
}
]]>
</script>

</body>
</html>