Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement attribute restyle hints #8381
Conversation
highfive
commented
Nov 6, 2015
|
@bors-servo try |
Implement attribute restyle hints <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8381) <!-- Reviewable:end -->
|
|
|
|
|
What is the rationale for moving AttrValue in style exactly? |
| name: name, | ||
| namespace: namespace, | ||
| prefix: prefix, | ||
| }, |
This comment has been minimized.
This comment has been minimized.
nox
Nov 7, 2015
Member
Could you name this field and structure differently? foo.foo also sounded silly to me. Maybe AttrID, or AttrIdentity, or AttrInfo, or something entirely different that I can't think of?
This comment has been minimized.
This comment has been minimized.
| @@ -291,33 +148,41 @@ impl AttrMethods for Attr { | |||
| impl Attr { | |||
| pub fn set_value(&self, mut value: AttrValue, owner: &Element) { | |||
| assert!(Some(owner) == self.owner().r()); | |||
| let notify = self.name.namespace == ns!(""); | |||
| if notify { | |||
| owner.will_mutate_attr(); | |||
This comment has been minimized.
This comment has been minimized.
nox
Nov 7, 2015
Member
Shouldn't that be called for all namespaces, given CSS attributes selectors aren't limited to the empty namespace?
This comment has been minimized.
This comment has been minimized.
bholley
Nov 9, 2015
Author
Contributor
Probably, yeah. I was trying to mimic the existing behavior here, but the existing behavior is probably just wrong.
|
|
@bors-servo try |
Implement attribute restyle hints <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8381) <!-- Reviewable:end -->
|
|
|
@bors-servo: r+ |
|
|
Implement attribute restyle hints <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8381) <!-- Reviewable:end -->
|
@bors-servo: retry try- r+ |
|
|
Implement attribute restyle hints <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8381) <!-- Reviewable:end -->
|
|
@bors-servo r=pcwalton |
|
|
Implement attribute restyle hints <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8381) <!-- Reviewable:end -->
|
|
bholley commentedNov 6, 2015