Age | Commit message (Collapse) | Author |
|
|
|
HTML like
<div>hello</div>
</body>
</html>
<div>hello</div>
currently causes the document tree to be a forest with
two root nodes.
To ensure we don't leak the first tree, an additional root node is
introduced to hold all document trees.
Catched by: Jeremy's valgrind logs
Reported by: corvid <corvid@lavabit.com>
|
|
|
|
Doctree now is a proper class with it's own implementation.
StyleEngine no longer needs to provide the Doctree interface itself.
This hopefully make the code easier to understand and should also be
a bit faster as no virtual methods are involved.
|
|
|
|
|
|
The idea is to avoid repeated checks of CssSimpleSelector against the
same part of the doctree.
E.g
.navigation * { background-color:green }
Would result in checking for class="navigation" all the way down to the
document root for all elements.
The optimization shortcuts this, for parts of the doctree that have been
checked before.
|
|
|
|
|
|
|
|
|
|
|
|
|