From 7e46a922c154d4c1a927fa00780987ab6b693aa8 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 24 Dec 2012 19:35:34 -0800 Subject: [PATCH] Bug 818400. Add a preference to control :scope and pref it off in release builds for now. r=dbaron --- content/base/test/file_bug416317.xhtml | 34 ++++-- layout/inspector/src/inDOMUtils.cpp | 4 +- layout/style/nsCSSPseudoClassList.h | 161 +++++++++++++------------ layout/style/nsCSSPseudoClasses.cpp | 25 +++- layout/style/nsCSSPseudoClasses.h | 2 +- layout/style/nsCSSRuleProcessor.cpp | 8 +- modules/libpref/src/init/all.js | 7 ++ 7 files changed, 139 insertions(+), 102 deletions(-) diff --git a/content/base/test/file_bug416317.xhtml b/content/base/test/file_bug416317.xhtml index 8bbfadad3f5..564ba6925f8 100644 --- a/content/base/test/file_bug416317.xhtml +++ b/content/base/test/file_bug416317.xhtml @@ -100,8 +100,8 @@ /* :root tests */ :root { background-color: green; } - /* :-moz-scope tests */ - :-moz-scope { background-color: green; } + /* :scope tests */ + :scope { background-color: green; } /* :nth-child(n) tests */ .nthchild1 > :nth-last-child(odd) { background-color: lime; } @@ -226,7 +226,17 @@ .bar. { background: red; color: yellow; }