mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Clean up debug options
This commit is contained in:
parent
3e3bd9c728
commit
dc192172ad
10 changed files with 172 additions and 308 deletions
|
@ -1713,7 +1713,7 @@ impl Fragment {
|
|||
);
|
||||
});
|
||||
|
||||
if opts::get().show_debug_fragment_borders {
|
||||
if opts::get().debug.show_fragment_borders {
|
||||
self.build_debug_borders_around_fragment(state, stacking_relative_border_box, clip)
|
||||
}
|
||||
}
|
||||
|
@ -1772,7 +1772,7 @@ impl Fragment {
|
|||
clip,
|
||||
);
|
||||
|
||||
if opts::get().show_debug_fragment_borders {
|
||||
if opts::get().debug.show_fragment_borders {
|
||||
self.build_debug_borders_around_text_fragments(
|
||||
state,
|
||||
self.style(),
|
||||
|
@ -1793,7 +1793,7 @@ impl Fragment {
|
|||
clip,
|
||||
);
|
||||
|
||||
if opts::get().show_debug_fragment_borders {
|
||||
if opts::get().debug.show_fragment_borders {
|
||||
self.build_debug_borders_around_text_fragments(
|
||||
state,
|
||||
self.style(),
|
||||
|
@ -1817,7 +1817,7 @@ impl Fragment {
|
|||
SpecificFragmentInfo::InlineAbsolute(_) |
|
||||
SpecificFragmentInfo::TruncatedFragment(_) |
|
||||
SpecificFragmentInfo::Svg(_) => {
|
||||
if opts::get().show_debug_fragment_borders {
|
||||
if opts::get().debug.show_fragment_borders {
|
||||
self.build_debug_borders_around_fragment(
|
||||
state,
|
||||
stacking_relative_border_box,
|
||||
|
@ -2885,7 +2885,7 @@ impl BaseFlow {
|
|||
state: &mut DisplayListBuildState,
|
||||
node: OpaqueNode,
|
||||
) {
|
||||
if !opts::get().show_debug_parallel_layout {
|
||||
if !opts::get().debug.show_parallel_layout {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue