зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1167782: Null-check pseudo element in nsHTMLCSSStyleSheet::RulesMatching(). r=dbaron
This commit is contained in:
Родитель
fd401f9e9b
Коммит
fc985d746e
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<html>
|
||||
<body>
|
||||
<script>
|
||||
var d = window.getComputedStyle(document.body, "::-moz-color-swatch").display;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -118,5 +118,6 @@ pref(dom.animations-api.core.enabled,true) load 1161320-2.html
|
|||
load 1161366-1.html
|
||||
load 1163446-1.html
|
||||
load 1164813-1.html
|
||||
load 1167782-1.html
|
||||
load large_border_image_width.html
|
||||
load border-image-visited-link.html
|
||||
|
|
|
@ -104,11 +104,8 @@ nsHTMLCSSStyleSheet::PseudoElementRulesMatching(Element* aPseudoElement,
|
|||
/* virtual */ void
|
||||
nsHTMLCSSStyleSheet::RulesMatching(PseudoElementRuleProcessorData* aData)
|
||||
{
|
||||
if (nsCSSPseudoElements::PseudoElementSupportsStyleAttribute(aData->mPseudoType)) {
|
||||
MOZ_ASSERT(aData->mPseudoElement,
|
||||
"If pseudo element is supposed to support style attribute, it must "
|
||||
"have a pseudo element set");
|
||||
|
||||
if (nsCSSPseudoElements::PseudoElementSupportsStyleAttribute(aData->mPseudoType) &&
|
||||
aData->mPseudoElement) {
|
||||
PseudoElementRulesMatching(aData->mPseudoElement, aData->mPseudoType,
|
||||
aData->mRuleWalker);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче