mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove/don’t call no-op compute_font_hash method for stylo.
This removes a potentially-costly Arc::mut call.
This commit is contained in:
parent
4ad844f7bd
commit
e0c63efe01
3 changed files with 9 additions and 11 deletions
|
@ -1247,9 +1247,6 @@ fn static_assert() {
|
|||
unsafe { transmute(self.gecko.mFont.weight) }
|
||||
}
|
||||
|
||||
// This is used for PartialEq, which we don't implement for gecko style structs.
|
||||
pub fn compute_font_hash(&mut self) {}
|
||||
|
||||
pub fn set_font_synthesis(&mut self, v: longhands::font_synthesis::computed_value::T) {
|
||||
use gecko_bindings::structs::{NS_FONT_SYNTHESIS_WEIGHT, NS_FONT_SYNTHESIS_STYLE};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue