Add an option to validate display list items

When this option is enabled, the layout task will print an error when
display list items draw outside their owning Flow's position rect. This
will make it easier to detect layout errors before they break rendering.

This is a command-line option for the moment, because we violate this
rule quite a bit still. Once all bugs causing this are fixed, we can be
more aggressive about enabling the option.
This commit is contained in:
Martin Robinson 2014-10-20 17:31:44 -07:00
parent f6941b35e3
commit adecdbd4cf
3 changed files with 36 additions and 0 deletions

View file

@ -73,6 +73,7 @@ pub extern "C" fn cef_run_message_loop() {
initial_window_size: TypedSize2D(800, 600),
user_agent: None,
dump_flow_tree: false,
validate_display_list_geometry: false,
};
native::start(0, 0 as *const *const u8, proc() {
let window = Some(glfw_app::create_window());