mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 495274. Fix broken selector cloning. r+sr=dbaron
This commit is contained in:
parent
254331b604
commit
761090a98f
9
layout/reftests/bugs/495274-1-ref.html
Normal file
9
layout/reftests/bugs/495274-1-ref.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>body { color: green; }</style>
|
||||
</head>
|
||||
<body>
|
||||
This text should be green
|
||||
</body>
|
||||
</html>
|
15
layout/reftests/bugs/495274-1.html
Normal file
15
layout/reftests/bugs/495274-1.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>body { color: green; }</style>
|
||||
<link rel="stylesheet" href='data:text/css,body > span { color: red }' type="text/css"/>
|
||||
<link rel="stylesheet" href='data:text/css,body > span { color: red }' type="text/css"/>
|
||||
<script>
|
||||
// Force cloning of the second linked sheet
|
||||
document.styleSheets[2].cssRules[0];
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div><span>This text should be green</span></div>
|
||||
</body>
|
||||
</html>
|
@ -1242,3 +1242,4 @@ fails-if(MOZ_WIDGET_TOOLKIT!="cocoa") == 488692-1.html 488692-1-ref.html # needs
|
||||
== 493968-1.html 493968-1-ref.html
|
||||
== 494667-1.html 494667-1-ref.html
|
||||
== 494667-2.html 494667-2-ref.html
|
||||
== 495274-1.html 495274-1-ref.html
|
||||
|
@ -280,6 +280,7 @@ nsCSSSelector::Clone(PRBool aDeepNext, PRBool aDeepNegations) const
|
||||
|
||||
result->mNameSpace = mNameSpace;
|
||||
result->mTag = mTag;
|
||||
result->mOperator = mOperator;
|
||||
|
||||
NS_IF_CLONE(mIDList);
|
||||
NS_IF_CLONE(mClassList);
|
||||
|
Loading…
Reference in New Issue
Block a user