mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove REPAINT damage in Fragment::build_display_list
Previously, the code that called this function was responsible for this. Some code paths neglected to do it. This moves the damage removal to one central location.
This commit is contained in:
parent
8f7cfb1b06
commit
25a19343b3
3 changed files with 5 additions and 8 deletions
|
@ -38,6 +38,7 @@ use model::{self, MaybeAuto, ToGfxMatrix};
|
|||
use net_traits::image::base::PixelFormat;
|
||||
use net_traits::image_cache_thread::UsePlaceholder;
|
||||
use range::Range;
|
||||
use script_layout_interface::restyle_damage::REPAINT;
|
||||
use std::default::Default;
|
||||
use std::sync::Arc;
|
||||
use std::{cmp, f32};
|
||||
|
@ -1011,6 +1012,7 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
display_list_section: DisplayListSection,
|
||||
clip: &ClippingRegion,
|
||||
stacking_relative_display_port: &Rect<Au>) {
|
||||
self.restyle_damage.remove(REPAINT);
|
||||
if self.style().get_inheritedbox().visibility != visibility::T::visible {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue