<div id="element"></div>

<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function () {
  if (!window.internals)
    assert_unreached('This test requires window.internals.');

  assert_greater_than(internals.updateStyleAndReturnAffectedElementCount(), 1);

  element.style.top = "0px";
  assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1);

  for (var i = 0; i < 100; i ++) {
    element.style.top = "0px";
    assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 0);
  }
}, "Check that a no-op inline style change doesn't result in a recalc");
</script>

<!DOCTYPE html>
<div id="element"></div>

<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function () {
  if (!window.internals)
    assert_unreached('This test requires window.internals.');

  assert_greater_than(internals.updateStyleAndReturnAffectedElementCount(), 1);

  element.style.top = "0px";
  assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1);

  for (var i = 0; i < 100; i ++) {
    element.style.top = "0px";
    assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 0);
  }
}, "Check that a no-op inline style change doesn't result in a recalc");
</script>

Add <!DOCTYPE html> to existing test
Add <!DOCTYPE html> to existing test

Add <!DOCTYPE html> to the
LayoutTests/fast/css/no-recalc-on-no-op-inline-style-changes.html test.
This test wasn't meant to be missing the doctype (it's not testing for
browser quirks).

BUG=472892

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

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@194253 bbb929c8-8fbe-4397-9dbb-9b2b20218538
