mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
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:
parent
f6941b35e3
commit
adecdbd4cf
3 changed files with 36 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue