mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
layout: allow only repaint when css background and border image loaded (#39201)
This change allows that only new display list is built when css background and border image loaded. Testing: This change should not change any behaviors so covered by existing WPT tests. Signed-off-by: sharpshooter_pt <ibluegalaxy_taoj@163.com>
This commit is contained in:
parent
e00bfb525b
commit
30d3706a2b
5 changed files with 68 additions and 13 deletions
|
@ -539,6 +539,10 @@ impl Layout for LayoutThread {
|
|||
self.need_new_display_list.get()
|
||||
}
|
||||
|
||||
fn set_needs_new_display_list(&self) {
|
||||
self.need_new_display_list.set(true);
|
||||
}
|
||||
|
||||
/// <https://drafts.css-houdini.org/css-properties-values-api-1/#the-registerproperty-function>
|
||||
fn register_custom_property(
|
||||
&mut self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue