Skip to content

Commit ef9a984

Browse files
Fix println patch
1 parent af9b932 commit ef9a984

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs
2-
index 2134e39..e4a5cb4 100644
32
--- a/components/script/dom/cssstyledeclaration.rs
43
+++ b/components/script/dom/cssstyledeclaration.rs
5-
@@ -311,6 +311,7 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration {
6-
7-
// https://dev.w3.org/csswg/cssom/#dom-cssstyledeclaration-getpropertypriority
8-
fn GetPropertyPriority(&self, property: DOMString) -> DOMString {
4+
@@ -343,6 +343,7 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration {
5+
6+
// https://dev.w3.org/csswg/cssom/#dom-cssstyledeclaration-getpropertyvalue
7+
fn GetPropertyValue(&self, property: DOMString) -> DOMString {
98
+ println!("{:?}", property);
10-
let id = if let Ok(id) = PropertyId::parse(&property, None) {
11-
id
12-
} else {
9+
let id = match PropertyId::parse_enabled_for_all_content(&property) {
10+
Ok(id) => id,
11+
Err(..) => return DOMString::new(),

0 commit comments

Comments
 (0)