Bug 495274. Fix broken selector cloning. r+sr=dbaron
This commit is contained in:
Родитель
8712ef8721
Коммит
00b52aaad2
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>body { color: green; }</style>
|
||||
</head>
|
||||
<body>
|
||||
This text should be green
|
||||
</body>
|
||||
</html>
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче