Commit Graph

5 Commits

Author SHA1 Message Date
Max Brunsfeld
d6981dfcab Avoid throwing intentional errors in DOMElementPool test 2017-03-02 10:19:48 -08:00
Nathan Sobo
ee749bf286 Assign className in DOMElementPool when building new elements
Also, improve test coverage
2017-02-13 11:27:44 -07:00
Nathan Sobo
1528561c9b Only free elements that the DOMElementPool created 2017-02-13 10:46:37 -07:00
Nathan Sobo
5753b75f09 Fail assertion with content metadata if the same element is freed twice
This changes the element pool to only remove elements' children right
before we use an element again in order to preserve the structure of
double-freed elements. This will aid in debugging double-free
occurrences. It's also less work in cases where nodes aren't reused.
2017-02-13 10:30:51 -07:00
Nathan Sobo
bb9d1f49c0 Convert DOMElementPool and specs to JS 2017-02-13 09:51:20 -07:00