mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update to string-cache 0.3
This commit is contained in:
parent
9fcc9d9d3f
commit
53b638c0e2
170 changed files with 1309 additions and 1050 deletions
|
@ -104,7 +104,7 @@ pub fn attr_exists_selector_is_shareable(attr_selector: &AttrSelector<TheSelecto
|
|||
// NB(pcwalton): If you update this, remember to update the corresponding list in
|
||||
// `can_share_style_with()` as well.
|
||||
common_style_affecting_attributes().iter().any(|common_attr_info| {
|
||||
common_attr_info.atom == attr_selector.name && match common_attr_info.mode {
|
||||
common_attr_info.attr_name == attr_selector.name && match common_attr_info.mode {
|
||||
CommonStyleAffectingAttributeMode::IsPresent(_) => true,
|
||||
CommonStyleAffectingAttributeMode::IsEqual(..) => false,
|
||||
}
|
||||
|
@ -115,9 +115,10 @@ pub fn attr_equals_selector_is_shareable(attr_selector: &AttrSelector<TheSelecto
|
|||
value: &AttrValue) -> bool {
|
||||
// FIXME(pcwalton): Remove once we start actually supporting RTL text. This is in
|
||||
// here because the UA style otherwise disables all style sharing completely.
|
||||
// FIXME(SimonSapin): should this be the attribute *name* rather than value?
|
||||
atom!("dir") == *value ||
|
||||
common_style_affecting_attributes().iter().any(|common_attr_info| {
|
||||
common_attr_info.atom == attr_selector.name && match common_attr_info.mode {
|
||||
common_attr_info.attr_name == attr_selector.name && match common_attr_info.mode {
|
||||
CommonStyleAffectingAttributeMode::IsEqual(ref target_value, _) => {
|
||||
*target_value == *value
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue