mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #8196 - Ms2ger:clone-font-cache-task, r=nox
Remove a pointless clone() from add_font_face_rules. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8196) <!-- Reviewable:end -->
This commit is contained in:
commit
64cae0c590
1 changed files with 0 additions and 1 deletions
|
@ -324,7 +324,6 @@ fn add_font_face_rules(stylesheet: &Stylesheet,
|
|||
outstanding_web_fonts_counter: &Arc<AtomicUsize>) {
|
||||
for font_face in stylesheet.effective_rules(&device).font_face() {
|
||||
for source in &font_face.sources {
|
||||
let font_cache_task = (*font_cache_task).clone();
|
||||
outstanding_web_fonts_counter.fetch_add(1, Ordering::SeqCst);
|
||||
font_cache_task.add_web_font(font_face.family.clone(),
|
||||
(*source).clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue