diff --git a/dom/base/nsStyleLinkElement.cpp b/dom/base/nsStyleLinkElement.cpp index 261e86386606d..0464db9656870 100644 --- a/dom/base/nsStyleLinkElement.cpp +++ b/dom/base/nsStyleLinkElement.cpp @@ -1321,21 +1321,7 @@ doc thisContent - > -IsInShadowTree -( -) -? -thisContent -- -> -OwnerDoc -( -) -: -thisContent -- -> -GetUncomposedDoc +GetComposedDoc ( ) ; diff --git a/testing/web-platform/tests/shadow-dom/ShadowRoot-interface.html b/testing/web-platform/tests/shadow-dom/ShadowRoot-interface.html index 4b94b040269e5..60c132bcee8ee 100644 --- a/testing/web-platform/tests/shadow-dom/ShadowRoot-interface.html +++ b/testing/web-platform/tests/shadow-dom/ShadowRoot-interface.html @@ -1224,33 +1224,6 @@ } ) ; -assert_equals -( -shadowRoot -. -styleSheets -. -length -0 -' -shadowRoot -. -styleSheets -must -be -empty -when -the -shadow -root -does -not -contain -any -stylesheets -' -) -; shadowRoot . innerHTML @@ -1296,6 +1269,40 @@ styleSheets . length +0 +' +shadowRoot +. +styleSheets +must +be +empty +when +the +shadow +root +is +not +connected +' +) +; +document +. +body +. +appendChild +( +host +) +; +assert_equals +( +shadowRoot +. +styleSheets +. +length 2 ' shadowRoot diff --git a/testing/web-platform/tests/shadow-dom/untriaged/styles/test-003.html b/testing/web-platform/tests/shadow-dom/untriaged/styles/test-003.html index 48ccedd42fc4e..d46ee7145682b 100644 --- a/testing/web-platform/tests/shadow-dom/untriaged/styles/test-003.html +++ b/testing/web-platform/tests/shadow-dom/untriaged/styles/test-003.html @@ -410,46 +410,6 @@ ' ) ; -/ -/ -TODO -Now -this -tests -produces -an -error -on -Chromium -because -styleSheets -. -length -/ -/ -returns -0 -when -the -shadow -root -is -orphaned -. -/ -/ -Tracking -bug -: -http -: -/ -/ -crbug -. -com -/ -392771 test ( unit @@ -536,27 +496,6 @@ style ) ; -/ -/ -The -following -line -fixes -the -issue -on -Chromium -http -: -/ -/ -crbug -. -com -/ -392771 -/ -/ d . body