Bug 1326514 - Implement the CSSOM bits for CSSNamespaceRule. r=bz

MozReview-Commit-ID: 5UpvH4osOfn

--HG--
extra : rebase_source : 9b04b92e1c270217e068ce72e6c64884067500b7
This commit is contained in:
Xidorn Quan 2017-12-21 12:17:37 +11:00
Родитель 79b5f2dd2e
Коммит 65122eed20
4 изменённых файлов: 8 добавлений и 21 удалений

Просмотреть файл

@ -9,8 +9,6 @@
// https://drafts.csswg.org/cssom/#cssnamespacerule
interface CSSNamespaceRule : CSSRule {
// Not implemented yet. <See
// https://bugzilla.mozilla.org/show_bug.cgi?id=1326514>.
// readonly attribute DOMString namespaceURI;
// readonly attribute DOMString prefix;
readonly attribute DOMString namespaceURI;
readonly attribute DOMString prefix;
};

Просмотреть файл

@ -36,6 +36,12 @@ public:
uint16_t Type() const final {
return nsIDOMCSSRule::NAMESPACE_RULE;
}
void GetNamespaceURI(nsString& aNamespaceURI) {
GetURLSpec(aNamespaceURI);
}
void GetPrefix(DOMString& aPrefix) {
aPrefix.SetOwnedAtom(GetPrefix(), DOMString::eNullNotExpected);
}
size_t SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const = 0;

Просмотреть файл

@ -1,5 +0,0 @@
[CSSNamespaceRule.html]
type: testharness
[CSSOM - CSSNamespaceRule interface]
expected: FAIL

Просмотреть файл

@ -75,12 +75,6 @@
[CSSMarginRule interface: attribute style]
expected: FAIL
[CSSNamespaceRule interface: attribute namespaceURI]
expected: FAIL
[CSSNamespaceRule interface: attribute prefix]
expected: FAIL
[CSSStyleDeclaration interface: operation setPropertyValue(DOMString,DOMString)]
expected: FAIL
@ -189,12 +183,6 @@
[CSSRule interface: style_element.sheet.cssRules[2\].cssRules[0\] must inherit property "parentStyleSheet" with the proper type]
expected: FAIL
[CSSNamespaceRule interface: style_element.sheet.cssRules[1\] must inherit property "namespaceURI" with the proper type]
expected: FAIL
[CSSNamespaceRule interface: style_element.sheet.cssRules[1\] must inherit property "prefix" with the proper type]
expected: FAIL
[CSSRule interface: style_element.sheet.cssRules[1\] must inherit property "MARGIN_RULE" with the proper type]
expected: FAIL