Skip to content

Commit 29b5640

Browse files
Adjust style-servo patch
This adjusts the style-servo println patch to be in a non-templated file. Previously, the properties file change would cause the build script to rerun.
1 parent e1236d9 commit 29b5640

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
diff --git a/components/style/properties/longhand/font.mako.rs b/components/style/properties/longhand/font.mako.rs
2-
index 04d6c69..ce76c97 100644
3-
--- a/components/style/properties/longhand/font.mako.rs
4-
+++ b/components/style/properties/longhand/font.mako.rs
5-
@@ -174,6 +174,7 @@ macro_rules! impl_gecko_keyword_conversions {
6-
}))
7-
}
8-
let first_ident = input.expect_ident()?.clone();
9-
+ println!("font-family parsing first ident: {:?}", first_ident);
10-
11-
// FIXME(bholley): The fast thing to do here would be to look up the
12-
// string (as lowercase) in the static atoms table. We don't have an
1+
diff --git a/components/style/matching.rs b/components/style/matching.rs
2+
--- a/components/style/matching.rs
3+
+++ b/components/style/matching.rs
4+
@@ -788,6 +788,7 @@ pub trait MatchMethods : TElement {
5+
// Non-animation restyle hints will be processed in a subsequent
6+
// normal traversal.
7+
if replacements.intersects(RestyleHint::for_animations()) {
8+
+ println!("{:?}", context.shared.traversal_flags.for_animation_only());
9+
debug_assert!(context.shared.traversal_flags.for_animation_only());
1310

11+
if replacements.contains(RESTYLE_SMIL) {

collector/benchmarks/style-servo/components/style/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ fn generate_properties() {
6363
let entry = entry.unwrap();
6464
match entry.path().extension().and_then(|e| e.to_str()) {
6565
Some("mako") | Some("rs") | Some("py") | Some("zip") => {
66+
println!("cargo:rerun-if-changed={}", entry.path().display());
6667
}
6768
_ => {}
6869
}

0 commit comments

Comments
 (0)