1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00

Make profiling easier to read.

This commit is contained in:
Simon Sapin 2011-10-14 16:13:54 +02:00
parent 9e13c20491
commit 1d7f96c06d

View File

@ -141,6 +141,10 @@ class Document(object):
for every box.
"""
if self._pages is None:
# "Linearize" code flow
_ = self.computed_styles
_ = self.formatting_structure
# Actual work
self._pages = layout(self)
return self._pages