From 00b52aaad2a9e3ca87db29a440724444288998f3 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 28 May 2009 20:41:27 -0400 Subject: [PATCH] Bug 495274. Fix broken selector cloning. r+sr=dbaron --- layout/reftests/bugs/495274-1-ref.html | 9 +++++++++ layout/reftests/bugs/495274-1.html | 15 +++++++++++++++ layout/reftests/bugs/reftest.list | 1 + layout/style/nsCSSStyleRule.cpp | 1 + 4 files changed, 26 insertions(+) create mode 100644 layout/reftests/bugs/495274-1-ref.html create mode 100644 layout/reftests/bugs/495274-1.html diff --git a/layout/reftests/bugs/495274-1-ref.html b/layout/reftests/bugs/495274-1-ref.html new file mode 100644 index 00000000000..882f0ef9fc2 --- /dev/null +++ b/layout/reftests/bugs/495274-1-ref.html @@ -0,0 +1,9 @@ + + + + + + + This text should be green + + diff --git a/layout/reftests/bugs/495274-1.html b/layout/reftests/bugs/495274-1.html new file mode 100644 index 00000000000..2a0b3a85a64 --- /dev/null +++ b/layout/reftests/bugs/495274-1.html @@ -0,0 +1,15 @@ + + + + + + + + + +
This text should be green
+ + diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list index 0eb0ed69097..d95d719f7af 100644 --- a/layout/reftests/bugs/reftest.list +++ b/layout/reftests/bugs/reftest.list @@ -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 diff --git a/layout/style/nsCSSStyleRule.cpp b/layout/style/nsCSSStyleRule.cpp index e4143d1250c..b4907414109 100644 --- a/layout/style/nsCSSStyleRule.cpp +++ b/layout/style/nsCSSStyleRule.cpp @@ -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);