You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move -servo-display-for-hypothetical-box outside of mako. #19697
This is great! Do you have any particular plan for it? My idea for this is getting rid of the custom_cascade stuff, and unify how it works with Gecko.
Gecko uses mOriginalDisplay for this, and sets that from gecko.mako.rs. I planned to unify it setting it in StyleAdjuster::adjust, something like:
ifletSome(mut box) = self.style.get_box_if_mutated(){// Save the display value without style adjustments now, which we need for hypothetical boxes.let display = box.clone_display();
box.set_original_display(display);}
And we can remove set_adjusted_display, since now it's just set_display, and remove the whole -servo-display-for-hypothetical-box, which is just get_original_display, or something like that.
@emilio No, I didn't have my own plan. However, after you mentioned, I searched custom_cascade in Servo. Then, I found it's only used for -servo-text-decorations-in-effect and -servo-display-for-hypothetical-box. I'm willing to help to get rid of it and make it unify with Gecko.
So, after removing all set_adjusted_display methods and setting display inside StyleAdjuster::adjust, then we don't have the attribute, -servo-display-for-hypothetical-box, because it's just get_original_display.
Activity
emilio commentedon Jan 5, 2018
This is great! Do you have any particular plan for it? My idea for this is getting rid of the custom_cascade stuff, and unify how it works with Gecko.
Gecko uses
mOriginalDisplayfor this, and sets that fromgecko.mako.rs. I planned to unify it setting it inStyleAdjuster::adjust, something like:And we can remove
set_adjusted_display, since now it's justset_display, and remove the whole-servo-display-for-hypothetical-box, which is justget_original_display, or something like that.CYBAI commentedon Jan 5, 2018
@emilio No, I didn't have my own plan. However, after you mentioned, I searched
custom_cascadein Servo. Then, I found it's only used for-servo-text-decorations-in-effectand-servo-display-for-hypothetical-box. I'm willing to help to get rid of it and make it unify with Gecko.So, after removing all
set_adjusted_displaymethods and settingdisplayinsideStyleAdjuster::adjust, then we don't have the attribute,-servo-display-for-hypothetical-box, because it's justget_original_display.Auto merge of #19709 - CYBAI:servo-display-out-of-mako, r=<try>
Auto merge of #19709 - CYBAI:servo-display-out-of-mako, r=emilio
Auto merge of #19709 - CYBAI:servo-display-out-of-mako, r=emilio
Auto merge of #19709 - CYBAI:servo-display-out-of-mako, r=<try>
Auto merge of #19709 - CYBAI:servo-display-out-of-mako, r=emilio