[Webkit-unassigned] [Bug 143327] New: No-op inline style changes cause style recalcs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 1 18:30:45 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=143327

            Bug ID: 143327
           Summary: No-op inline style changes cause style recalcs
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: esprehn at chromium.org

Confirmed in r182227

<div id="test"></div>
<script>
var test = document.getElementById("test");
setInterval(function() {
    test.style.top = "0px";
});
</script>

This causes an infinite number of style recalcs even though it's just assigning the same number repeatedly. It seems the parser returns true to mean "successfully parsed", and the inline style machinery interprets that bool to mean "something changed". Probably want to compare the CSSProperty objects to see that they're actually different instead (different value, different important).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150402/0b7ba409/attachment-0001.html>


More information about the webkit-unassigned mailing list